...
|
...
|
@@ -186,41 +186,36 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl |
|
|
cols: [[{
|
|
|
type: 'checkbox'
|
|
|
}, {
|
|
|
field: 'name', title: '名称', align: 'center', width: '250',
|
|
|
field: 'name', title: '名称', align: 'center', width: '15%',
|
|
|
templet:
|
|
|
'<div>' +
|
|
|
' <span data-id="{{d.id}}" class="link link-noticeTimely-edit">{{d.name}}</span>' +
|
|
|
'</div>'
|
|
|
}, {
|
|
|
field: 'details', title: '内容', align: 'left', minWidth: '650',
|
|
|
field: 'details', title: '内容', align: 'left', width: '25%',
|
|
|
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', width: '130'
|
|
|
field: 'frequency', title: '频率', align: 'center', minWidth: '130'
|
|
|
}, {
|
|
|
field: 'noticeNicknames', title: '用户', align: 'center', minWidth: '180'
|
|
|
}, {
|
|
|
field: 'state', title: '是否启用', align: 'center', width: '100',
|
|
|
field: 'lastSendTime', title: '最后发送时间', align: 'center', minWidth: '170',templet: function (d) {
|
|
|
if(d.noticeStateNew && d.noticeStateNew.sendTime){
|
|
|
return d.noticeStateNew.sendTime;
|
|
|
}
|
|
|
return '';
|
|
|
}
|
|
|
},{
|
|
|
field: 'state', title: '是否启用', align: 'center', minWidth: '100',
|
|
|
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>'
|
|
|
}
|
|
|
}, /*{
|
|
|
field: 'broadcast', title: '是否广播', align: 'center', width: '100',
|
|
|
templet: function (d) {
|
|
|
var checked = d.broadcast == 1 ? 'checked' : '';
|
|
|
return '<div><input type="checkbox" data-id="' + d.id + '" lay-filter="switch_noticeTimely_checkbox_broadcast" name="broadcast" lay-skin="switch" lay-text="是|否" ' + checked + ' ></div>'
|
|
|
}
|
|
|
}, {
|
|
|
field: 'retry', title: '是否轮循', align: 'center', width: '100',
|
|
|
templet: function (d) {
|
|
|
var checked = d.retry == 1 ? 'checked' : '';
|
|
|
return '<div><input type="checkbox" data-id="' + d.id + '" lay-filter="switch_noticeTimely_checkbox_retry" name="retry" lay-skin="switch" lay-text="重发|不重发" ' + checked + ' ></div>'
|
|
|
}
|
|
|
}, */{
|
|
|
title: '操作', align: 'center', minWidth: '150', fixed: 'right',
|
|
|
title: '操作', align: 'center', minWidth: '120', 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>' +
|
...
|
...
|
|