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); };