From b34c627d2130e2716b8e370b5cc47156fa788b50 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 17 Mar 2023 16:07:11 +0800 Subject: [PATCH] 后台修改 --- src/main/resources/templates/febs/views/modules/order/orderList.html | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/order/orderList.html b/src/main/resources/templates/febs/views/modules/order/orderList.html index a59b8ca..bb91673 100644 --- a/src/main/resources/templates/febs/views/modules/order/orderList.html +++ b/src/main/resources/templates/febs/views/modules/order/orderList.html @@ -138,6 +138,10 @@ form.render(); + let currPageGoods = 1;//首先默认值为1,防止出错 + //获取当前页 + currPageGoods = $view.find(".layui-laypage-em").next().html(); + // 表格初始化 initTable(); @@ -238,14 +242,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: currPageGoods}}); }); // 刷新按钮 $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: currPageGoods}, initSort: sortObject}); }); $add.on('click', function () { -- Gitblit v1.9.1