Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
Commits
2b1fdd08
Commit
2b1fdd08
authored
Sep 02, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
作废按钮
parent
9eb7e2b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
index.vue
...web/src/views/deviceInspection/inspectiondetail/index.vue
+6
-6
index.vue
...eb/src/views/riskManagement/hiddenTroubleDetail/index.vue
+11
-6
No files found.
gassafety-web/src/views/deviceInspection/inspectiondetail/index.vue
View file @
2b1fdd08
...
...
@@ -141,7 +141,7 @@
size=
"normal"
type=
"primary"
icon=
"el-icon-delete"
@
click=
"handleIsDel(form
.planId
)"
@
click=
"handleIsDel(form)"
v-hasPermi=
"['deviceInspection:inspectionPlan:edit']"
>
作废
</el-button>
...
...
@@ -470,16 +470,16 @@ export default {
});
},
/** 作废按钮操作 */
handleIsDel
(
planId
)
{
// this.form.planId
.isDel = "1";
this
.
$confirm
(
'是否确认作废巡检计划名称为"'
+
this
.
form
.
planName
+
'"的数据项?'
,
"警告"
,
{
handleIsDel
(
row
)
{
row
.
isDel
=
"1"
;
this
.
$confirm
(
'是否确认作废巡检计划名称为"'
+
row
.
planName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
updateInspectionPlan
(
planId
);
return
updateInspectionPlan
(
row
);
}).
then
(()
=>
{
this
.
getList
(
);
this
.
$router
.
go
(
-
1
);
this
.
msgSuccess
(
"已作废"
);
}).
catch
(()
=>
{
});
...
...
gassafety-web/src/views/riskManagement/hiddenTroubleDetail/index.vue
View file @
2b1fdd08
...
...
@@ -194,7 +194,7 @@
size=
"normal"
type=
"primary"
icon=
"el-icon-delete"
@
click=
"handleIsDel(form
.troubleId
)"
@
click=
"handleIsDel(form)"
v-hasPermi=
"['riskManagement:hiddenTrouble:query']"
>
作废
</el-button>
...
...
@@ -372,6 +372,7 @@ export default {
levelOptions
:
[],
// 用户列表
userList
:
[],
loadmap
:
false
,
props
:
{
value
:
"id"
,
label
:
"name"
,
...
...
@@ -576,6 +577,10 @@ export default {
this
.
loadmap
=
true
;
this
.
dialogTableVisible
=
true
;
},
dialogcancelFun
()
{
this
.
loadmap
=
false
;
this
.
dialogTableVisible
=
false
;
},
handleChange
(
value
)
{
console
.
log
(
this
.
form1
.
device
);
let
arr
=
this
.
form1
.
device
;
...
...
@@ -647,16 +652,16 @@ export default {
this
.
resetForm
(
"form2"
);
},
/** 作废按钮操作 */
handleIsDel
(
troubleId
)
{
// this.form.troubleId
.isDel = "1";
this
.
$confirm
(
'是否确认作废隐患名称为"'
+
this
.
form
.
troubleName
+
'"的数据项?'
,
"警告"
,
{
handleIsDel
(
row
)
{
row
.
isDel
=
"1"
;
this
.
$confirm
(
'是否确认作废隐患名称为"'
+
row
.
troubleName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
updateHiddenTrouble
(
troubleId
);
return
updateHiddenTrouble
(
row
);
}).
then
(()
=>
{
this
.
getList
(
);
this
.
$router
.
go
(
-
1
);
this
.
msgSuccess
(
"已作废"
);
}).
catch
(()
=>
{
});
...
...
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