From ca8ade3bdcca8d4c9fa58ddd42dd0a9a3cd66383 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 23 六月 2026 15:51:32 +0800
Subject: [PATCH] 首页查询所有订单
---
src/views/index.vue | 4 ++--
src/api/viewIndex.js | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 9cae219..4d2923c 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -349,7 +349,6 @@
export const productionOrderProgress = (params = {}) => {
const safePageNum = Math.max(1, Number(params.pageNum || 1));
- const safePageSize = Math.min(50, Math.max(1, Number(params.pageSize || 10)));
const safeTab = ["all", "inProgress", "completed", "paused"].includes(params.tab)
? params.tab
: "all";
@@ -360,7 +359,7 @@
...params,
tab: safeTab,
pageNum: safePageNum,
- pageSize: safePageSize,
+ pageSize: params.pageSize,
},
headers: {
handleAuthError: false,
diff --git a/src/views/index.vue b/src/views/index.vue
index 846390e..5785cbe 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1234,8 +1234,8 @@
const res = await productionOrderProgress({
status: orderFilter.value,
tab: orderFilter.value,
- pageNum: 1,
- pageSize: 10,
+ pageNum: -1,
+ pageSize: -1,
});
const data = res?.data || {};
const statusValue = normalizeOrderFilter(data.status, orderFilter.value);
--
Gitblit v1.9.3