Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
1f19f9fc
Commit
1f19f9fc
authored
Aug 12, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.91isoft.com:90/hikvision/web-project
parents
f019810e
8ea21256
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
35 deletions
+42
-35
AlarmStatusPage.vue
src/views/AlarmPage/AlarmStatusPage.vue
+42
-35
No files found.
src/views/AlarmPage/AlarmStatusPage.vue
View file @
1f19f9fc
...
@@ -166,8 +166,7 @@
...
@@ -166,8 +166,7 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
v-float-number
style=
"width: 80%"
type=
"textarea"
rows=
"6"
<el-input
style=
"width: 80%"
type=
"textarea"
rows=
"6"
v-model=
"addParams.alarmPlan"
></el-input>
v-model=
"addParams.alarmPlan"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -205,7 +204,7 @@
...
@@ -205,7 +204,7 @@
<el-button
disabled
type=
"primary"
@
click=
"onDel"
>
删除
</el-button>
<el-button
disabled
type=
"primary"
@
click=
"onDel"
>
删除
</el-button>
</div>
</div>
<div
v-else
>
<div
v-else
>
<el-button
type=
"primary"
@
click=
"on
Edit
"
>
修改
</el-button>
<el-button
type=
"primary"
@
click=
"on
Add
"
>
修改
</el-button>
<el-button
type=
"primary"
@
click=
"onDel"
>
删除
</el-button>
<el-button
type=
"primary"
@
click=
"onDel"
>
删除
</el-button>
</div>
</div>
</div>
</div>
...
@@ -236,7 +235,7 @@
...
@@ -236,7 +235,7 @@
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
}
from
'vue'
;
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
}
from
'vue'
;
import
http
from
'../../api/http'
;
import
http
from
'../../api/http'
;
import
store
from
"../../store/index"
;
import
store
from
"../../store/index"
;
import
{
ElMessage
}
from
'element-plus'
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
{
watchEffect
}
from
'vue'
;
import
{
watchEffect
}
from
'vue'
;
import
{
add
}
from
'lodash'
;
import
{
add
}
from
'lodash'
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
...
@@ -653,6 +652,7 @@ const selectAfterParams = (row) => {
...
@@ -653,6 +652,7 @@ const selectAfterParams = (row) => {
// 总管
// 总管
const
onAdd
=
()
=>
{
const
onAdd
=
()
=>
{
console
.
log
(
"!!!!!!!"
,
addParams
.
value
);
console
.
log
(
"!!!!!!!"
,
addParams
.
value
);
addParams
.
value
.
updateNullFields
=
""
if
(
newType
.
value
===
1
)
{
if
(
newType
.
value
===
1
)
{
addParams
.
value
.
pipeId
=
dept
.
value
addParams
.
value
.
pipeId
=
dept
.
value
addParams
.
value
.
pipeParaBaseId
=
newRow
.
value
addParams
.
value
.
pipeParaBaseId
=
newRow
.
value
...
@@ -714,37 +714,44 @@ const button = ref(true)
...
@@ -714,37 +714,44 @@ const button = ref(true)
// 删除逻辑
// 删除逻辑
const
onDel
=
()
=>
{
const
onDel
=
()
=>
{
if
(
type
.
value
===
1
)
{
ElMessageBox
.
confirm
(
"确定要删除该参数吗?"
,
{
http
.
post
(
"api/alarm/para/pipedelete"
,
{
id
:
delId
.
value
},
false
).
then
((
res
)
=>
{
type
:
'info'
if
(
res
.
success
)
{
}).
then
(()
=>
{
ElMessage
.
success
(
"总管参数删除成功!!"
)
if
(
type
.
value
===
1
)
{
reset
()
http
.
post
(
"api/alarm/para/pipedelete"
,
{
id
:
delId
.
value
},
false
).
then
((
res
)
=>
{
getCnNames
()
if
(
res
.
success
)
{
}
else
{
ElMessage
.
success
(
"总管参数删除成功!!"
)
ElMessage
.
error
(
"删除失败!!"
)
reset
()
}
}
else
{
})
ElMessage
.
error
(
"删除失败!!"
)
}
else
if
(
type
.
value
===
2
)
{
}
http
.
post
(
"api/alarm/para/boilerdelete"
,
{
id
:
delId
.
value
},
false
).
then
((
res
)
=>
{
})
if
(
res
.
success
)
{
}
else
if
(
type
.
value
===
2
)
{
ElMessage
.
success
(
"锅炉参数删除成功!!"
)
http
.
post
(
"api/alarm/para/boilerdelete"
,
{
id
:
delId
.
value
},
false
).
then
((
res
)
=>
{
getCnNames
()
if
(
res
.
success
)
{
reset
()
ElMessage
.
success
(
"锅炉参数删除成功!!"
)
}
else
{
reset
()
ElMessage
.
error
(
"删除失败!!"
)
}
else
{
}
ElMessage
.
error
(
"删除失败!!"
)
})
}
}
else
{
})
http
.
post
(
"api/alarm/para/transdelete"
,
{
id
:
delId
.
value
},
false
).
then
((
res
)
=>
{
}
else
{
if
(
res
.
success
)
{
http
.
post
(
"api/alarm/para/transdelete"
,
{
id
:
delId
.
value
},
false
).
then
((
res
)
=>
{
ElMessage
.
success
(
"换热站参数删除成功!!"
)
if
(
res
.
success
)
{
getCnNames
()
ElMessage
.
success
(
"换热站参数删除成功!!"
)
reset
()
reset
()
}
else
{
}
else
{
ElMessage
.
error
(
"删除失败!!"
)
ElMessage
.
error
(
"删除失败!!"
)
}
}
})
})
}
}
}).
catch
(()
=>
{
// 取消删除
ElMessage
.
success
(
"取消删除操作"
)
}).
finally
(()
=>
{
getCnNames
()
})
}
}
// 关闭dialog清空数据
// 关闭dialog清空数据
...
...
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