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/userList.html |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/chat/userList.html b/src/main/resources/templates/febs/views/modules/chat/userList.html
index 50456c0..28748d6 100644
--- a/src/main/resources/templates/febs/views/modules/chat/userList.html
+++ b/src/main/resources/templates/febs/views/modules/chat/userList.html
@@ -110,6 +110,9 @@
             tableIns;
 
         form.render();
+        let currPageUser = 1;//首先默认值为1,防止出错
+        //获取当前页
+        currPageUser = $view.find(".layui-laypage-em").next().html();
 
         // 表格初始化
         initTable();
@@ -124,7 +127,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: currPageUser}, initSort: sortObject});
         });
 
         // 获取查询参数
@@ -233,13 +236,13 @@
         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();
             });
         }
 
@@ -253,13 +256,13 @@
         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();
             });
         }
 
@@ -273,13 +276,13 @@
         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();
             });
         }
 
@@ -293,13 +296,13 @@
         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();
             });
         }
 

--
Gitblit v1.9.1