| | |
| | | tableIns; |
| | | |
| | | form.render(); |
| | | let currPageGroup = 1;//首先默认值为1,防止出错 |
| | | //获取当前页 |
| | | currPageGroup = $view.find(".layui-laypage-em").next().html(); |
| | | |
| | | // 表格初始化 |
| | | initTable(); |
| | |
| | | $reset.on('click', function () { |
| | | $searchForm[0].reset(); |
| | | sortObject.type = 'null'; |
| | | tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); |
| | | tableIns.reload({where: getQueryParams(), page: {curr: currPageGroup}, initSort: sortObject}); |
| | | }); |
| | | |
| | | // 获取查询参数 |
| | |
| | | function openSwitchAutoSend(id) { |
| | | febs.get(ctx + 'admin/chat/openSwitchAutoSend/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | function closeSwitchAutoSend(id) { |
| | | febs.get(ctx + 'admin/chat/closeSwitchAutoSend/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | form.on('switch(switchUseRobot)', function (data) { |
| | |
| | | function openSwitchUseRobot(id) { |
| | | febs.get(ctx + 'admin/chat/openSwitchUseRobot/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | function closeSwitchUseRobot(id) { |
| | | febs.get(ctx + 'admin/chat/closeSwitchUseRobot/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | |