From 58d42ee42a5e53c57d21dcabba1c02d8729ae039 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 17 Oct 2023 10:59:23 +0800 Subject: [PATCH] 一个商品领取一张卷, --- src/main/resources/templates/febs/views/modules/chat/groupList.html | 7 +++++-- 1 files changed, 5 insertions(+), 2 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..a1043ac 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(); @@ -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}); }); // 获取查询参数 -- Gitblit v1.9.1