Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7f40fe56
authored
Apr 01, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
cb3b59d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
src/pages/monitor/ParCharts.vue
src/pages/monitor/ParCharts.vue
View file @
7f40fe5
...
...
@@ -76,7 +76,8 @@ export default {
// 指定图表的配置项和数据
var
storedList
=
this
.
list
;
const
pointerData
=
this
.
list
.
length
?
this
.
list
[
0
].
value
:
0
console
.
log
(
pointerData
);
console
.
log
(
pointerData
,
storedList
,
'pointerData'
,
'---888----'
);
const
alarmLevel
=
storedList
[
0
]
&&
storedList
[
0
].
alarmLevel
?
storedList
[
0
].
alarmLevel
:
0
this
.
option
=
{
backgroundColor
:
""
,
series
:
[{
...
...
@@ -103,7 +104,7 @@ export default {
fontSize
:
12
,
formatter
:
function
(
val
)
{
let
value
=
''
switch
(
storedList
[
0
].
alarmLevel
/
1
)
{
switch
(
alarmLevel
/
1
)
{
case
1
:
value
=
'极高风险'
;
break
;
...
...
@@ -123,9 +124,9 @@ export default {
value
=
'无风险'
;
}
if
(
!
storedList
.
length
)
{
return
`
无
警情\n{b|
${
value
}
}`
;
return
`
5级
警情\n{b|
${
value
}
}`
;
}
else
{
return
`
${
storedList
[
0
].
alarmLevel
}
级警情\n{b|
${
value
}
}`
;
return
`
${
alarmLevel
}
级警情\n{b|
${
value
}
}`
;
}
},
rich
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment