Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
6e54316e
Commit
6e54316e
authored
Jul 08, 2022
by
yanzhongrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
11816e26
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
type5.vue
src/views/dashboard/components/type5.vue
+7
-8
type6.vue
src/views/dashboard/components/type6.vue
+1
-3
const.js
src/views/dashboard/const.js
+6
-0
No files found.
src/views/dashboard/components/type5.vue
View file @
6e54316e
...
@@ -342,7 +342,6 @@ export default {
...
@@ -342,7 +342,6 @@ export default {
},
},
watch
:
{
watch
:
{
statusAlarmfun
:
{
statusAlarmfun
:
{
immediate
:
true
,
handler
(
newV
)
{
handler
(
newV
)
{
if
(
newV
)
{
if
(
newV
)
{
this
.
trans
()
this
.
trans
()
...
@@ -379,17 +378,17 @@ export default {
...
@@ -379,17 +378,17 @@ export default {
})
})
},
},
leakylevelcolor
()
{
leakylevelcolor
()
{
if
(
this
.
statusl
[
0
].
value
===
'正常'
)
{
if
(
this
.
form
.
status
[
0
].
value
===
'正常'
)
{
this
.
acolor
.
color
=
'green'
this
.
acolor
.
color
=
'green'
}
else
if
(
this
.
statusl
[
0
].
value
===
'紧急'
)
{
}
else
if
(
this
.
form
.
status
[
0
].
value
===
'紧急'
)
{
this
.
acolor
.
color
=
'#f00'
this
.
acolor
.
color
=
'#f00'
this
.
statusl
[
0
].
value
=
'紧急告警'
this
.
form
.
status
[
0
].
value
=
'紧急告警'
}
else
if
(
this
.
statusl
[
0
].
value
===
'重要'
)
{
}
else
if
(
this
.
form
.
status
[
0
].
value
===
'重要'
)
{
this
.
acolor
.
color
=
'#f89850'
this
.
acolor
.
color
=
'#f89850'
this
.
statusl
[
0
].
value
=
'重要告警'
this
.
form
.
status
[
0
].
value
=
'重要告警'
}
else
if
(
this
.
statusl
[
0
].
value
===
'一般'
)
{
}
else
if
(
this
.
form
.
status
[
0
].
value
===
'一般'
)
{
this
.
acolor
.
color
=
'#ead906'
this
.
acolor
.
color
=
'#ead906'
this
.
statusl
[
0
].
value
=
'一般告警'
this
.
form
.
status
[
0
].
value
=
'一般告警'
}
}
},
},
toalarm
()
{
toalarm
()
{
...
...
src/views/dashboard/components/type6.vue
View file @
6e54316e
...
@@ -226,8 +226,7 @@
...
@@ -226,8 +226,7 @@
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-button
<el-button
v-if=
"
v-if=
"form.status[0].value == '紧急告警' || form.status[0].value == '重要告警' || form.status[0].value == '一般告警'
form.status[0].value == '紧急告警' || form.status[0].value == '重要告警' || form.status[0].value == '一般告警'
"
"
class=
"alarmbtn"
class=
"alarmbtn"
type=
"primary"
type=
"primary"
...
@@ -326,7 +325,6 @@ export default {
...
@@ -326,7 +325,6 @@ export default {
},
},
watch
:
{
watch
:
{
statusAlarmfun
:
{
statusAlarmfun
:
{
immediate
:
true
,
handler
(
newV
)
{
handler
(
newV
)
{
if
(
newV
)
{
if
(
newV
)
{
this
.
trans
()
this
.
trans
()
...
...
src/views/dashboard/const.js
View file @
6e54316e
...
@@ -123,6 +123,9 @@ export function formInit5(data = {}) {
...
@@ -123,6 +123,9 @@ export function formInit5(data = {}) {
},
},
log
:
0
,
log
:
0
,
loss
:
0
,
loss
:
0
,
status
:
[
{
name
:
''
,
value
:
''
}
],
...
data
...
data
}
}
}
}
...
@@ -147,6 +150,9 @@ export function formInit6(data = {}) {
...
@@ -147,6 +150,9 @@ export function formInit6(data = {}) {
},
},
log
:
0
,
log
:
0
,
loss
:
0
,
loss
:
0
,
status
:
[
{
name
:
''
,
value
:
''
}
],
...
data
...
data
}
}
}
}
...
...
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