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
a2faf2df
Commit
a2faf2df
authored
Sep 16, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管道管理
parent
0de38c9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
18 deletions
+31
-18
index.vue
gassafety-web/src/views/device/pipe/index.vue
+20
-14
index.vue
gassafety-web/src/views/device/pipeDetail/index.vue
+11
-4
No files found.
gassafety-web/src/views/device/pipe/index.vue
View file @
a2faf2df
...
@@ -479,21 +479,27 @@
...
@@ -479,21 +479,27 @@
handleDelete
(
row
)
{
handleDelete
(
row
)
{
row
.
isDel
=
"1"
;
row
.
isDel
=
"1"
;
var
devices
=
" "
;
var
devices
=
" "
;
for
(
var
i
=
0
;
i
<
row
.
deviceInfoList
.
length
;
i
++
){
var
tip
=
''
;
var
obj
=
row
.
deviceInfoList
[
i
];
if
(
row
.
deviceInfoList
!=
null
){
devices
=
devices
+
obj
.
deviceName
+
" "
;
for
(
var
i
=
0
;
i
<
row
.
deviceInfoList
.
length
;
i
++
){
var
obj
=
row
.
deviceInfoList
[
i
];
devices
=
devices
+
obj
.
deviceName
+
" "
;
}
tip
=
'请确认是否删除管道名称为"'
+
row
.
pipeName
+
'"的数据项,该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
}
else
{
tip
=
'请确认是否删除管道名称为"'
+
row
.
pipeName
+
'"的数据项'
;
}
}
this
.
$confirm
(
'请确认是否删除管道名称为"'
+
row
.
pipeName
+
'"的数据项,该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
,
{
this
.
$confirm
(
tip
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
}).
then
(
function
()
{
}).
then
(
function
()
{
return
updatePipe
(
row
);
return
updatePipe
(
row
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"已删除"
);
this
.
msgSuccess
(
"已删除"
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
});
});
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
...
gassafety-web/src/views/device/pipeDetail/index.vue
View file @
a2faf2df
...
@@ -332,11 +332,18 @@
...
@@ -332,11 +332,18 @@
handleDelete
(
res
)
{
handleDelete
(
res
)
{
res
.
isDel
=
"1"
;
res
.
isDel
=
"1"
;
var
devices
=
" "
;
var
devices
=
" "
;
for
(
var
i
=
0
;
i
<
res
.
deviceInfoList
.
length
;
i
++
)
{
var
tip
=
''
;
var
obj
=
res
.
deviceInfoList
[
i
];
if
(
res
.
deviceInfoList
!=
null
){
devices
=
devices
+
obj
.
deviceName
+
" "
;
for
(
var
i
=
0
;
i
<
res
.
deviceInfoList
.
length
;
i
++
)
{
var
obj
=
res
.
deviceInfoList
[
i
];
devices
=
devices
+
obj
.
deviceName
+
" "
;
}
tip
=
'该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
}
else
{
tip
=
'请确认是否删除管道名称为"'
+
res
.
pipeName
+
'"的数据项'
}
}
this
.
$confirm
(
'请确认是否删除管道名称为"'
+
res
.
pipeName
+
'"的数据项,该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
,
{
this
.
$confirm
(
tip
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
...
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