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
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
55b3aee0d76f9f7aeb0a9360a32e9611ff3ac396
2 parents
2a5c8da0
8ac953c3
Merge branch 'master-V32-LH' into 'master'
杭州-故障弹框-订阅管理 添加订阅防止重复添加 See merge request
!324
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/alarmsubscribeAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmsubscribeAdd.js
View file @
55b3aee
...
...
@@ -276,7 +276,13 @@ layui.define(['form', 'admin', 'laydate', 'table', 'common','sessions','cron','o
return
str
.
slice
(
0
,
str
.
length
-
1
);
}
//保存
var
str
=
0
;
$
(
"#alarmsubscribe-form-save-id"
).
on
(
"click"
,
function
(){
if
(
str
==
1
){
layer
.
msg
(
"数据正在保存,请稍后在试!"
);
return
false
;
}
var
data
=
form
.
val
(
"add-alarmsubscribe-form"
);
var
val
=
1
;
var
timeVal
=
{
val
};
...
...
@@ -344,6 +350,7 @@ layui.define(['form', 'admin', 'laydate', 'table', 'common','sessions','cron','o
}
else
{
data
.
sentFrequency
=
$
(
"#sentFrequency_input"
).
val
();
}
str
=
1
;
admin
.
req
({
url
:
domainName
+
'/api-web/alarmsubscribe/save?access_token='
+
accessToken
,
data
:
JSON
.
stringify
(
data
)
...
...
@@ -356,6 +363,7 @@ layui.define(['form', 'admin', 'laydate', 'table', 'common','sessions','cron','o
receiveUserInfos
=
[];
if
(
layui
.
alarmsubscribeIndex
&&
layui
.
alarmsubscribeIndex
()){
layer
.
closeAll
();
str
=
0
;
layui
.
alarmsubscribeIndex
().
reloadsubscribe
();
}
});
...
...
@@ -364,7 +372,6 @@ layui.define(['form', 'admin', 'laydate', 'table', 'common','sessions','cron','o
}
}
});
return
false
;
//必须要写,解决禁用submit提交,ajax方法才能正确执行,且表单不会自动刷新
})
});
...
...
Please
register
or
login
to post a comment