fix(ops): 修复工牌队列统计字段名与后端不匹配

后端 BadgeQueueStats 返回的字段为 queueData,前端误用 queueCounts,
导致工牌队列统计图表数据为 undefined 无法渲染。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-03-01 15:55:34 +08:00
parent 81da329cbd
commit 6de80f2f93
2 changed files with 3 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ export interface DashboardStatsResp {
// 工牌近7天队列数量统计
badgeQueueStats?: {
dates: string[];
queueCounts: number[];
queueData: number[];
};
}

View File

@@ -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',