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
cd605fc8c6432c4f8ea090dd9c388bf8f3aa35de
1 parent
3ba95c05
1424 列表上增加最后一条通知时间,并且可以看到最后一条通知内容。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/noticeTimelyIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/noticeTimelyIndex.js
View file @
cd605fc
...
...
@@ -186,19 +186,19 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
cols
:
[[{
type
:
'checkbox'
},
{
field
:
'name'
,
title
:
'名称'
,
align
:
'center'
,
width
:
'15%
'
,
field
:
'name'
,
title
:
'名称'
,
align
:
'center'
,
minWidth
:
'100
'
,
templet
:
'<div>'
+
' <span data-id="{{d.id}}" class="link link-noticeTimely-edit">{{d.name}}</span>'
+
'</div>'
},
{
field
:
'details'
,
title
:
'内容'
,
align
:
'left'
,
width
:
'
2
5%'
,
field
:
'details'
,
title
:
'内容'
,
align
:
'left'
,
width
:
'
1
5%'
,
templet
:
function
(
d
)
{
// return '<input type="text" class="layui-input" style= "background-color:transparent;border:0;padding-bottom: 10px" readonly="readonly" name="details" value="' + d.details + '">'
return
'<code>'
+
d
.
details
+
'</code>'
}
},
{
field
:
'frequency'
,
title
:
'频率'
,
align
:
'center'
,
minWidth
:
'1
3
0'
field
:
'frequency'
,
title
:
'频率'
,
align
:
'center'
,
minWidth
:
'1
2
0'
},
{
field
:
'noticeNicknames'
,
title
:
'用户'
,
align
:
'center'
,
minWidth
:
'180'
},
{
...
...
@@ -209,17 +209,24 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
return
''
;
}
},{
field
:
'state'
,
title
:
'是否启用'
,
align
:
'center'
,
minWidth
:
'100'
,
field
:
'lastSendContent'
,
title
:
'最后发送内容'
,
align
:
'center'
,
minWidth
:
'200'
,
templet
:
function
(
d
)
{
if
(
d
.
noticeStateNew
&&
d
.
noticeStateNew
.
sendContent
){
return
d
.
noticeStateNew
.
sendContent
;
}
return
''
;
}
},{
field
:
'state'
,
title
:
'是否启用'
,
align
:
'center'
,
minWidth
:
'60'
,
templet
:
function
(
d
)
{
var
checked
=
d
.
state
==
2
?
'checked'
:
''
;
return
'<div><input type="checkbox" data-id="'
+
d
.
id
+
'" lay-filter="switch_noticeTimely_checkbox_state" name="state" lay-skin="switch" lay-text="启用|禁用" '
+
checked
+
' ></div>'
}
},
{
title
:
'操作'
,
align
:
'center'
,
minWidth
:
'
12
0'
,
fixed
:
'right'
,
title
:
'操作'
,
align
:
'center'
,
minWidth
:
'
8
0'
,
fixed
:
'right'
,
templet
:
'<div>'
+
' <button data-id="{{d.id}}" class="layui-btn layui-btn-xs layui-btn-normal link-noticeTimely-delete" lay-tips="删除"><i class="layui-icon"></i></button>'
+
' <button data-id="{{d.id}}" class="layui-btn layui-btn-xs layui-btn-normal link-noticeTimely-history" lay-tips="历史记录"><i class="layui-icon">
705
;</i></button>'
+
' <button data-id="{{d.id}}" class="layui-btn layui-btn-xs layui-btn-normal link-noticeTimely-history" lay-tips="历史记录"><i class="layui-icon">
60e
;</i></button>'
+
'</div>'
}]],
done
:
function
(
res
)
{
...
...
Please
register
or
login
to post a comment