| | |
| | | table.on('tool(memberMessageTable)', function (obj) { |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | if (layEvent === 'sendBackMessage') { |
| | | febs.modal.open('回复', 'dappView/sendBackMessage/' + data.id, { |
| | | btn: ['确认', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#sendBackMessage-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'showMessage') { |
| | | febs.modal.open( '消息记录', 'dappView/showMessage/' + data.id, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | table.on('sort(memberMessageTable)', function (obj) { |
| | |
| | | } |
| | | }, minWidth: 150, align: 'center'}, |
| | | {field: 'message', title: '内容', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180} |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {title: '回复', |
| | | templet: function (d) { |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="sendBackMessage" shiro:hasPermission="user:sendBack">回复</button>' |
| | | },minWidth: 100,align:'center'}, |
| | | {title: '查看记录', |
| | | templet: function (d) { |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="showMessage" shiro:hasPermission="user:showMessage">查看记录</button>' |
| | | },minWidth: 100,align:'center'}, |
| | | ]] |
| | | }); |
| | | } |