| | |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body febs-table-full"> |
| | | <form class="layui-form layui-table-form" lay-filter="user-table-form"> |
| | | <form class="layui-form layui-table-form" lay-filter="user-perk-table-form"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-md10"> |
| | | <div class="layui-form-item"> |
| | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | <table lay-filter="userChatTable" lay-data="{id: 'userChatTable'}"></table> |
| | | <table lay-filter="userPerkTable" lay-data="{id: 'userPerkTable'}"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | function initTable() { |
| | | tableIns = febs.table.init({ |
| | | elem: $view.find('table'), |
| | | id: 'userChatTable', |
| | | id: 'userPerkTable', |
| | | url: ctx + 'admin/chat/getUserPerkList', |
| | | toolbar:"#toolbar", |
| | | defaultToolbar:[], |
| | |
| | | }); |
| | | } |
| | | |
| | | table.on('toolbar(userChatTable)', function(obj){ |
| | | table.on('toolbar(userPerkTable)', function(obj){ |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | |
| | |
| | | // } |
| | | |
| | | if (layEvent === 'registerMember') { |
| | | var checkData = table.checkStatus('userChatTable').data; |
| | | var checkData = table.checkStatus('userPerkTable').data; |
| | | if (checkData.length <= 0) { |
| | | febs.alert.warn('请选择需要的用户'); |
| | | return; |
| | |
| | | } |
| | | |
| | | if (layEvent === 'balance') { |
| | | var checkData = table.checkStatus('userChatTable').data; |
| | | var checkData = table.checkStatus('userPerkTable').data; |
| | | if (checkData.length <= 0) { |
| | | febs.alert.warn('请选择需要的用户'); |
| | | return; |