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
Show 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,11 +479,17 @@
handleDelete
(
row
)
{
row
.
isDel
=
"1"
;
var
devices
=
" "
;
var
tip
=
''
;
if
(
row
.
deviceInfoList
!=
null
){
for
(
var
i
=
0
;
i
<
row
.
deviceInfoList
.
length
;
i
++
){
var
obj
=
row
.
deviceInfoList
[
i
];
devices
=
devices
+
obj
.
deviceName
+
" "
;
}
this
.
$confirm
(
'请确认是否删除管道名称为"'
+
row
.
pipeName
+
'"的数据项,该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
,
{
tip
=
'请确认是否删除管道名称为"'
+
row
.
pipeName
+
'"的数据项,该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
}
else
{
tip
=
'请确认是否删除管道名称为"'
+
row
.
pipeName
+
'"的数据项'
;
}
this
.
$confirm
(
tip
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
...
...
gassafety-web/src/views/device/pipeDetail/index.vue
View file @
a2faf2df
...
...
@@ -332,11 +332,18 @@
handleDelete
(
res
)
{
res
.
isDel
=
"1"
;
var
devices
=
" "
;
var
tip
=
''
;
if
(
res
.
deviceInfoList
!=
null
){
for
(
var
i
=
0
;
i
<
res
.
deviceInfoList
.
length
;
i
++
)
{
var
obj
=
res
.
deviceInfoList
[
i
];
devices
=
devices
+
obj
.
deviceName
+
" "
;
}
this
.
$confirm
(
'请确认是否删除管道名称为"'
+
res
.
pipeName
+
'"的数据项,该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
,
{
tip
=
'该管道下包含的设备('
+
devices
+
')将一并被删除'
,
"警告"
}
else
{
tip
=
'请确认是否删除管道名称为"'
+
res
.
pipeName
+
'"的数据项'
}
this
.
$confirm
(
tip
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
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