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
wangtao
3 years ago
Commit
3ba95c052262733920e8b18a9e330094d2096e4e
1 parent
d97fc66f
1426 B6,系统通知配置支持列排序,一级页面列表操作列增加手动发送按钮
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/systemNotice.js
hg-monitor-web-zj/src/main/resources/application.yml
hg-monitor-web-base/src/main/resources/static/src/controller/systemNotice.js
View file @
3ba95c0
...
...
@@ -42,7 +42,20 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate'
//按钮搜索
$
(
'#systemNoticeQueryBtn'
).
unbind
().
on
(
'click'
,
function
(
e
)
{
reloadTable
();
if
(
!
noticeTable
){
return
;
}
conditions
.
noticeTempName
=
$
(
'#condition-template-noticeTempName'
).
val
().
trim
();
conditions
.
startTime
=
$
(
'#condition-template-startTime'
).
val
().
trim
();
conditions
.
endTime
=
$
(
'#condition-template-endTime'
).
val
().
trim
();
conditions
.
access_token
=
accessToken
// 刷新表格
noticeTable
.
reload
({
where
:
conditions
,
page
:
{
curr
:
1
}
});
})
// 新增按钮
...
...
@@ -178,6 +191,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate'
templet
:
'<div>'
+
' <button data-id="{{d.noticeTempId}}" lay-tips="删除" type="button" class="layui-btn layui-btn-xs layui-btn-normal link-notice-temp-delete"><i class="layui-icon layui-icon-delete"></i></button>'
+
' <button data-id="{{d.noticeTempId}}" data-subId="{{d.subId}}" lay-tips="发送" type="button" class="layui-btn layui-btn-xs layui-btn-normal link-notice-temp-send"><i class="layui-icon layui-icon-release"></i></button>'
+
'</div>'
}]],
done
:
function
(
res
)
{
...
...
@@ -214,6 +228,11 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate'
saveNotice
(
$
(
this
).
data
(
'id'
),
$
(
this
).
data
(
"subid"
),
res
.
data
[
$
(
this
).
data
(
'index'
)]);
});
// 手动发送
$
(
'.link-notice-temp-send'
).
click
(
function
()
{
openUserWindow
(
$
(
this
).
data
(
'subid'
),
res
.
data
[
$
(
this
).
data
(
'index'
)]);
});
// 绑定订阅事件
$
(
'.link-notice-temp-bind-sub'
).
click
(
function
()
{
var
noticeTempId
=
$
(
this
).
data
(
'id'
);
...
...
@@ -528,4 +547,4 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate'
})
}
});
});
\ No newline at end of file
});
...
...
hg-monitor-web-zj/src/main/resources/application.yml
View file @
3ba95c0
...
...
@@ -12,7 +12,7 @@ server:
key-store-password
:
Hg0801..
key-password
:
Hg0801..
url
:
gateway
:
http
://127.0.0.1
:8080
gateway
:
http
s://192.168.0.69
:8080
inspection_web
:
http://127.0.0.1:8082
assetsweb
:
http://127.0.0.1:8082
mxgraph_editor
:
http://127.0.0.1:8085
...
...
Please
register
or
login
to post a comment