Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
XuHaoJie
3 years ago
Commit
2940a18b5f8c10c8b72b78845e2f4562552de32e
1 parent
52b4955a
杭州-活动告警、历史告警-告警数量统计级别颜色调整
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
hg-monitor-web-zj/src/main/resources/static/src/controller/activewarning.js
hg-monitor-web-zj/src/main/resources/static/src/controller/historywarning.js
hg-monitor-web-zj/src/main/resources/static/src/controller/activewarning.js
View file @
2940a18
...
...
@@ -912,6 +912,8 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
}
reloadTable
(
'sort'
);
})
//更改告警级别颜色
setColourLevel
();
}
}
})
...
...
@@ -934,6 +936,28 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
});
});
//更改告警级别颜色
function
setColourLevel
()
{
//获取告警等级
let
alarmLevel
=
$
(
"#alarmLevelSearchBox"
).
val
();
$
(
'#alarm_serious'
).
css
(
"color"
,
"#666"
);
$
(
'#alarm_important'
).
css
(
"color"
,
"#666"
);
$
(
'#alarm_commonly'
).
css
(
"color"
,
"#666"
);
switch
(
alarmLevel
)
{
case
"3"
:
//严重告警
$
(
'#alarm_serious'
).
css
(
"color"
,
"#D81E06"
);
break
;
case
"2"
:
//重要告警
$
(
'#alarm_important'
).
css
(
"color"
,
"#FF7E00"
);
break
;
case
"1"
:
//一般告警
$
(
'#alarm_commonly'
).
css
(
"color"
,
"#1e9fff"
);
break
;
default
:
//其他 空或无
break
;
}
}
//绑定下拉搜索事件
function
bindSelectEvent
()
{
//选择业务搜索
...
...
hg-monitor-web-zj/src/main/resources/static/src/controller/historywarning.js
View file @
2940a18
...
...
@@ -471,6 +471,8 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
reloadTable
();
}
});
//更改告警级别颜色
setColourLevel
();
}
});
//触发拖动列事件,参数为保存按钮的id
...
...
@@ -489,6 +491,29 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
}
});
});
//更改告警级别颜色
function
setColourLevel
()
{
//获取告警等级
let
alarmLevel
=
$
(
"#historyAlarmLevelSearchBox"
).
val
();
$
(
'#his_alarm_serious'
).
css
(
"color"
,
"#666"
);
$
(
'#his_alarm_important'
).
css
(
"color"
,
"#666"
);
$
(
'#his_alarm_commonly'
).
css
(
"color"
,
"#666"
);
switch
(
alarmLevel
)
{
case
"3"
:
//严重告警
$
(
'#his_alarm_serious'
).
css
(
"color"
,
"#D81E06"
);
break
;
case
"2"
:
//重要告警
$
(
'#his_alarm_important'
).
css
(
"color"
,
"#FF7E00"
);
break
;
case
"1"
:
//一般告警
$
(
'#his_alarm_commonly'
).
css
(
"color"
,
"#1e9fff"
);
break
;
default
:
//其他 空或无
break
;
}
}
function
isEmptyObject
(
e
)
{
var
t
;
for
(
t
in
e
)
...
...
Please
register
or
login
to post a comment