Authored by wangtao

1426 B6,系统通知配置支持列排序,一级页面列表操作列增加手动发送按钮

... ... @@ -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');
... ...
... ... @@ -12,7 +12,7 @@ server:
key-store-password: Hg0801..
key-password: Hg0801..
url:
gateway: http://127.0.0.1:8080
gateway: https://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
... ...