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
bb56956db35c5a4eebec29b4b7ac873481b38fc9
1 parent
75981535
告警模板配置策略保存失败
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/alarmpolicyAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmtemplateIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmpolicyAdd.js
View file @
bb56956
...
...
@@ -28,6 +28,7 @@ layui.define(['form', 'admin', 'laydate', 'common', 'sessions', 'reskpilist'], f
$
(
'#alarmpolicy_policyType_add'
).
html
(
htmlRadio
);
});
//编辑
debugger
if
(
data
&&
data
.
id
)
{
// 获取通知合并策略的表达式
admin
.
req
({
...
...
@@ -37,7 +38,6 @@ layui.define(['form', 'admin', 'laydate', 'common', 'sessions', 'reskpilist'], f
$
(
"#noticeMergeFlagExpr"
).
val
(
res
.
data
[
0
].
noticeMergeExpr
);
}
});
var
policyType
=
''
;
admin
.
req
({
url
:
domainName
+
'/api-web/alarmPolicy/getbyId/'
+
data
.
id
,
async
:
false
...
...
@@ -50,6 +50,7 @@ layui.define(['form', 'admin', 'laydate', 'common', 'sessions', 'reskpilist'], f
$
(
"#alarm-policy-kpiName"
).
val
(
res
.
object
.
kpiId
+
" "
+
res
.
object
.
kpiName
);
$
(
"#seriousTimes"
).
val
(
res
.
object
.
seriousTimes
);
$
(
"#alarmpolicy_policyType_add"
).
val
(
res
.
object
.
policyType
);
form
.
render
(
null
,
'add-alarmpolicy-form'
);
}
});
}
else
{
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/alarmtemplateIndex.js
View file @
bb56956
...
...
@@ -103,6 +103,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions'
}
}
});
reloadalarmtemplateTable
();
return
true
;
});
}
else
{
layer
.
msg
(
"请至少选择一条数据!"
,
{
offset
:
'15px'
,
icon
:
7
,
time
:
1000
});
...
...
Please
register
or
login
to post a comment