| | |
| | | // 查询按钮 |
| | | $query.on('click', function () { |
| | | var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type}); |
| | | tableIns.reload({where: params, page: {curr: currPageUser}}); |
| | | tableIns.reload({where: params, page: {curr: 1}}); |
| | | }); |
| | | |
| | | // 刷新按钮 |
| | |
| | | function openCreateGroup(userId) { |
| | | febs.get(ctx + 'admin/chat/openCreateGroup/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | function closeCreateGroup(userId) { |
| | | febs.get(ctx + 'admin/chat/closeCreateGroup/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | |
| | |
| | | function openModelType(userId) { |
| | | febs.get(ctx + 'admin/chat/openModelType/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | function closeModelType(userId) { |
| | | febs.get(ctx + 'admin/chat/closeModelType/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | |
| | |
| | | function openAccount(userId) { |
| | | febs.get(ctx + 'admin/chat/openAccount/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | function closeAccount(userId) { |
| | | febs.get(ctx + 'admin/chat/closeAccount/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | |
| | |
| | | function openSwitchIsRobot(userId) { |
| | | febs.get(ctx + 'admin/chat/openSwitchIsRobot/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | function closeSwitchIsRobot(userId) { |
| | | febs.get(ctx + 'admin/chat/closeSwitchIsRobot/' + userId, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | $reset.click(); |
| | | }); |
| | | } |
| | | |