From 6de80f2f93466a2967f45fb36fafc790cdd28cb9 Mon Sep 17 00:00:00 2001 From: lzh Date: Sun, 1 Mar 2026 15:55:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(ops):=20=E4=BF=AE=E5=A4=8D=E5=B7=A5?= =?UTF-8?q?=E7=89=8C=E9=98=9F=E5=88=97=E7=BB=9F=E8=AE=A1=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E4=B8=8E=E5=90=8E=E7=AB=AF=E4=B8=8D=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端 BadgeQueueStats 返回的字段为 queueData,前端误用 queueCounts, 导致工牌队列统计图表数据为 undefined 无法渲染。 Co-Authored-By: Claude Opus 4.6 --- apps/web-antd/src/api/ops/order-center/index.ts | 2 +- .../src/views/ops/cleaning/work-order/dashboard/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/api/ops/order-center/index.ts b/apps/web-antd/src/api/ops/order-center/index.ts index 63f0d1913..80343d848 100644 --- a/apps/web-antd/src/api/ops/order-center/index.ts +++ b/apps/web-antd/src/api/ops/order-center/index.ts @@ -214,7 +214,7 @@ export interface DashboardStatsResp { // 工牌近7天队列数量统计 badgeQueueStats?: { dates: string[]; - queueCounts: number[]; + queueData: number[]; }; } diff --git a/apps/web-antd/src/views/ops/cleaning/work-order/dashboard/index.vue b/apps/web-antd/src/views/ops/cleaning/work-order/dashboard/index.vue index e2ffda75f..ae693935c 100644 --- a/apps/web-antd/src/views/ops/cleaning/work-order/dashboard/index.vue +++ b/apps/web-antd/src/views/ops/cleaning/work-order/dashboard/index.vue @@ -90,7 +90,7 @@ interface DashboardStats { // 工牌近7天队列数量统计 badgeQueueStats?: { dates: string[]; - queueCounts: number[]; + queueData: number[]; }; } @@ -713,7 +713,7 @@ function getBadgeQueueChartOptions(): ECOption { name: '队列数量', type: 'bar', barWidth: '50%', - data: queue.queueCounts, + data: queue.queueData, itemStyle: { color: { type: 'linear',