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