fix(ops): 修复工牌队列统计字段名与后端不匹配
后端 BadgeQueueStats 返回的字段为 queueData,前端误用 queueCounts, 导致工牌队列统计图表数据为 undefined 无法渲染。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -214,7 +214,7 @@ export interface DashboardStatsResp {
|
||||
// 工牌近7天队列数量统计
|
||||
badgeQueueStats?: {
|
||||
dates: string[];
|
||||
queueCounts: number[];
|
||||
queueData: number[];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user