From 04d7b9c15d4da263b64deaf9e4e136baca33e2b6 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 20 Mar 2023 10:27:09 +0800
Subject: [PATCH] 后台修改

---
 src/main/resources/templates/febs/views/modules/order/orderList.html |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 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..fb20f48 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 () {
@@ -282,9 +286,9 @@
                     {field: 'status', title: '状态',
                         templet: function (d) {
                             if (d.status === 1) {
-                                return '<span style="color:red;">待支付</span>'
+                                return '<span style="color:blue;">待支付</span>'
                             } else if (d.status === 2) {
-                                return '<span style="color:green;">待发货</span>'
+                                return '<span style="color:red;">待发货</span>'
                             }else if (d.status === 3) {
                                 return '<span style="color:green;">待收货</span>'
                             }else if (d.status === 4) {

--
Gitblit v1.9.1