From bd249bac31b096472bd34cebff7223d30cb577b7 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 23 Oct 2023 16:33:21 +0800 Subject: [PATCH] 版本管理 --- src/main/resources/templates/febs/views/modules/chat/groupList.html | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/chat/groupList.html b/src/main/resources/templates/febs/views/modules/chat/groupList.html index 401f55a..1542b0a 100644 --- a/src/main/resources/templates/febs/views/modules/chat/groupList.html +++ b/src/main/resources/templates/febs/views/modules/chat/groupList.html @@ -84,6 +84,9 @@ tableIns; form.render(); + let currPageGroup = 1;//首先默认值为1,防止出错 + //获取当前页 + currPageGroup = $view.find(".layui-laypage-em").next().html(); // 表格初始化 initTable(); @@ -114,7 +117,7 @@ $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}); }); // 获取查询参数 @@ -158,13 +161,13 @@ 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) { @@ -177,13 +180,13 @@ 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(); }); } -- Gitblit v1.9.1