From 2187eb2cfb13d5d486bba1161bf036285d9274ce Mon Sep 17 00:00:00 2001 From: "2358328281@qq.com" <邮箱地址> Date: Sat, 20 Jun 2026 21:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E6=95=B0=E7=9B=B4=E6=8E=A5=E5=8F=96?= =?UTF-8?q?=E6=80=BB=E5=92=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/orders/list.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/admin/orders/list.vue b/src/views/admin/orders/list.vue index 67a248b..2588506 100644 --- a/src/views/admin/orders/list.vue +++ b/src/views/admin/orders/list.vue @@ -436,7 +436,6 @@ const stats = reactive({ // 当前选中的总览卡片:total | pending | completed | high const activeStat = ref("total"); const parseStats = (res) => { - stats.total = res?.total || 0; let payload = res?.data; if (typeof payload === "string") { try { @@ -445,8 +444,10 @@ const parseStats = (res) => { payload = {}; } } + stats.completed = Number(payload?.TotalStatus1 ?? 0); stats.pending = Number(payload?.TotalStatus2 ?? 0); + stats.total = stats.completed + stats.pending; stats.highPriority = Number(payload?.TotalPriority ?? 0); };