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
张凯
2 years ago
Commit
2ec3336c217e93e9a94a609a3c139cf5eb62dd3f
1 parent
1d28efe4
fix:1、告警订阅,订阅对象无法下探页面一直在转圈;2、下探后删除报错
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/alarmsubscribeIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmsubscribeIndex.js
View file @
2ec3336
...
...
@@ -650,13 +650,12 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
$
(
"#alarm_subscribe_resource_list_id table tbody"
).
on
(
"click"
,
"span.resource_sublist_del"
,
function
()
{
var
id
=
$
(
this
).
attr
(
"id"
);
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/alarmsubscribe/delete/ressub'
,
data
:
{
id
:
id
},
url
:
common
.
domainName
+
'/api-web/alarmsubscribe/delete/ressub?id='
+
id
,
type
:
"delete"
,
done
:
function
(
res
)
{
if
(
res
.
success
)
{
layer
.
msg
(
"删除成功"
,
{
icon
:
1
,
time
:
3000
},
function
()
{
//
reloadalarmsubscribeTable();
reloadalarmsubscribeTable
();
reloadTbody
();
});
$
(
"#"
+
id
).
parent
().
parent
().
remove
();
...
...
@@ -776,8 +775,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
$
(
"span.resource_kpi_sublist_del"
).
on
(
"click"
,
function
()
{
var
id
=
$
(
this
).
attr
(
"id"
);
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/alarmsubscribe/delete/kpisub'
,
data
:
{
id
:
id
},
url
:
common
.
domainName
+
'/api-web/alarmsubscribe/delete/kpisub?id='
+
id
,
type
:
"delete"
,
done
:
function
(
res
)
{
if
(
res
.
success
)
{
...
...
@@ -806,7 +804,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
common
.
openWin
(
"template/res/typeSubscribeList"
,
"选择资源类型"
,
{
subId
:
subId
,
type
:
0
},
[
"
返回
"
],
function
()
{
},
[
"
确定
"
],
function
()
{
reloadalarmsubscribeTable
();
return
true
;
});
...
...
@@ -822,7 +820,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
common
.
openWin
(
"template/res/typeSubscribeList"
,
"选择业务系统"
,
{
subId
:
subId
,
type
:
1
},
[
"
返回
"
],
function
()
{
},
[
"
确定
"
],
function
()
{
reloadalarmsubscribeTable
();
return
true
;
});
...
...
Please
register
or
login
to post a comment