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
xwx
3 years ago
Commit
211e0c12c81049efa196c83f2b8dbb67f9422834
1 parent
2d01fdb6
告警模板策略类型替换为从字典获取
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/alarmpolicyIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmtemplateAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmpolicyIndex.js
View file @
211e0c1
...
...
@@ -34,7 +34,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions','xmSelect',
});
var
table_data
=
[];
if
(
data
&&
data
.
type
==
'alarmTemplate'
)
{
$
(
'#alarmpolicy_policyType'
).
val
(
'
0
'
);
$
(
'#alarmpolicy_policyType'
).
val
(
'
3
'
);
$
(
'#alarmpolicy_policyType'
).
attr
(
'disabled'
,
'disabled'
);
}
else
{
$
(
'#alarmpolicy_policyType'
).
val
(
'1'
);
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/alarmtemplateAdd.js
View file @
211e0c1
...
...
@@ -73,10 +73,13 @@ layui.define(['form','table', 'admin', 'common','sessions'], function (exports)
var
alarm_policy_tbody
=
''
;
$
.
each
(
data
,
function
(
i
,
d
){
var
isDefault
=
''
;
if
(
d
.
policyType
==
'1'
){
//默认
isDefault
=
'<button type="button" class="layui-btn layui-btn-warm layui-btn-radius layui-btn-xs p-0-15">默认</button>'
;
}
else
{
isDefault
=
'<button type="button" class="layui-btn layui-btn-primary layui-btn-radius layui-btn-xs p-0-15">非默认</button>'
;
switch
(
d
.
policyType
){
case
"1"
:
isDefault
=
"全局默认策略"
;
case
"2"
:
isDefault
=
"全局非默认策略"
;
case
"3"
:
isDefault
=
"模板策略"
;
}
var
kpiIdent
=
''
;
if
(
d
.
kpiIdent
==
'0'
){
kpiIdent
=
"基本指标"
;}
...
...
Please
register
or
login
to post a comment