xiaoyong931011
2023-10-23 bd249bac31b096472bd34cebff7223d30cb577b7
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();
            });
        }