Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
d936e6e4
Commit
d936e6e4
authored
Feb 18, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应急处置功能
parent
fff2f8c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
10 deletions
+54
-10
index.vue
gassafetyprogress-web/src/views/complainDeal/index.vue
+54
-10
No files found.
gassafetyprogress-web/src/views/complainDeal/index.vue
View file @
d936e6e4
...
...
@@ -86,8 +86,26 @@
<el-table-column
label=
"指派人"
align=
"center"
prop=
"complainAssignMan"
/>
<el-table-column
label=
"任务状态"
align=
"center"
prop=
"complainStatus"
:formatter=
"taskStateFormat"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"200"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
v-if=
"scope.row.complainStatus==1"
style=
"color: red"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['complainDeal:complainDeal:edit']"
>
反馈
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.complainStatus==2"
style=
"color: #30B46B"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handlegui(scope.row)"
v-hasPermi=
"['complainDeal:complainDeal:edit']"
>
归档
</el-button>
<el-button
size=
"mini"
type=
"text"
...
...
@@ -144,7 +162,7 @@
:label =
"dict.enterpriseName"
:value =
"dict.enterpriseId"
/>
/>
</el-select>
</el-form-item>
<el-form-item
label=
"指派人"
prop=
"complainAssignManId"
>
...
...
@@ -168,7 +186,7 @@
<el-input
v-model=
"form.transferRecord"
type=
"textarea"
placeholder=
"请输入转办记录"
:disabled=
"readonly"
/>
</el-form-item>
<el-form-item
label=
"任务状态"
>
<el-select
v-model=
"form.complainStatus"
placeholder=
"请选择任务状态"
size=
"small"
:disabled=
"readonly"
>
<el-select
v-model=
"form.complainStatus"
placeholder=
"请选择任务状态"
:disabled=
"readonly"
>
<el-option
v-for=
"dict in taskStateOptions"
:key=
"dict.dictValue"
...
...
@@ -242,10 +260,22 @@ export default {
},
// 表单参数
form
:
{
peopleList
:[]
peopleList
:[]
,
},
// 表单校验
rules
:
{
complainName
:
[
{
required
:
true
,
message
:
"投诉人不能为空"
,
trigger
:
"blur"
}
],
complainPhone
:
[
{
required
:
true
,
message
:
"投诉人电话不能为空"
,
trigger
:
"blur"
}
],
complainMatter
:
[
{
required
:
true
,
message
:
"投诉事项不能为空"
,
trigger
:
"blur"
}
],
complainAssignEnterproseId
:
[
{
required
:
true
,
message
:
"指派单位不能为空"
,
trigger
:
"blur"
}
],
}
};
},
...
...
@@ -314,7 +344,7 @@ export default {
complainAssignEnterproseId
:
null
,
complainAssignManId
:
null
,
complainAssignMan
:
null
,
complainStatus
:
"
0
"
,
complainStatus
:
"
1
"
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
...
...
@@ -344,10 +374,10 @@ export default {
var
status
=
this
.
selectDictLabel
(
this
.
taskStateOptions
,
row
.
complainStatus
);
if
(
status
==
'派发中'
){
return
<
p
style
=
'color: #ff4949'
>
派发中
<
/p
>
}
else
if
(
"反馈"
){
return
<
p
style
=
'color: #1890ff'
>
派发中
<
/p
>
}
else
if
(
status
==
"反馈"
){
return
<
p
style
=
'color: #1890ff'
>
已反馈
<
/p
>
}
else
{
return
<
p
style
=
'color: #30B46B'
>
派发中
<
/p
>
return
<
p
style
=
'color: #30B46B'
>
已归档
<
/p
>
}
return
this
.
selectDictLabel
(
this
.
taskStateOptions
,
row
.
complainStatus
);
},
...
...
@@ -404,7 +434,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
complainDealIds
=
row
.
complainDealId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除
投诉处置编号为"'
+
complainDealIds
+
'"的
数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认删除
选中的投诉处置
数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
...
...
@@ -415,6 +445,20 @@ export default {
this
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
},
handlegui
(
row
)
{
const
complainDealIds
=
row
.
complainDealId
||
this
.
ids
;
this
.
$confirm
(
'是否确认归档选中的投诉处置数据项?'
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"success"
}).
then
(()
=>
{
var
a
=
{
"complainDealId"
:
complainDealIds
,
"complainStatus"
:
3
}
return
updateComplainDeal
(
a
);
}).
then
(()
=>
{
this
.
msgSuccess
(
"归档成功"
);
this
.
getList
();
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment