xiaoyong931011
2023-10-17 58d42ee42a5e53c57d21dcabba1c02d8729ae039
一个商品领取一张卷,
2 files modified
14 ■■■■ changed files
src/main/resources/templates/febs/views/modules/chat/groupList.html 7 ●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/chat/userList.html 7 ●●●● patch | view | raw | blame | history
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();
@@ -107,14 +110,14 @@
        // 查询按钮
        $query.on('click', function () {
            var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type});
            tableIns.reload({where: params, page: {curr: 1}});
            tableIns.reload({where: params, page: {curr: currPageGroup}});
        });
        // 刷新按钮
        $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});
        });
        // 获取查询参数
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();
@@ -117,14 +120,14 @@
        // 查询按钮
        $query.on('click', function () {
            var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type});
            tableIns.reload({where: params, page: {curr: 1}});
            tableIns.reload({where: params, page: {curr: currPageUser}});
        });
        // 刷新按钮
        $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});
        });
        // 获取查询参数