diff --git a/src/components/dashboard/PlanSection.vue b/src/components/dashboard/PlanSection.vue index 2e90b6c..69669fd 100644 --- a/src/components/dashboard/PlanSection.vue +++ b/src/components/dashboard/PlanSection.vue @@ -65,24 +65,34 @@ - - - {{ formatNumber(taskTrendData.totalNum) }} - {{ t('dashboard.totalTask') }} + + + + {{ formatNumber(taskTrendData.totalNum) }} + {{ t('dashboard.totalTask') }} + + + {{ formatNumber(taskTrendData.issuedNum) }} + {{ t('dashboard.issuedNum') }} + + + {{ formatNumber(taskTrendData.partialScheduledNum) }} + {{ t('dashboard.partialScheduledNum') }} + + + {{ formatNumber(taskTrendData.waitingProductionNum) }} + {{ t('dashboard.waitingProduction') }} + + + {{ formatNumber(taskTrendData.producingNum) }} + {{ t('dashboard.producing') }} + + + {{ formatNumber(taskTrendData.completedNum) }} + {{ t('dashboard.completed') }} + - - {{ formatNumber(taskTrendData.waitingProductionNum) }} - {{ t('dashboard.waitingProduction') }} - - - {{ formatNumber(taskTrendData.producingNum) }} - {{ t('dashboard.producing') }} - - - {{ formatNumber(taskTrendData.completedNum) }} - {{ t('dashboard.completed') }} - - + {{ t('dashboard.totalTask') }} @@ -583,14 +593,20 @@ defineExpose({ loadData }) margin-top: 8rpx; } -.trend-stats { - display: flex; - justify-content: space-between; +.trend-stats-scroll { + width: 100%; + white-space: nowrap; margin-bottom: 24rpx; } +.trend-stats { + display: inline-flex; + flex-wrap: nowrap; +} + .trend-stat-card { - flex: 1; + flex-shrink: 0; + width: 164rpx; background: #f8fafc; border-radius: 12rpx; padding: 20rpx 12rpx; diff --git a/src/locales/en-US.js b/src/locales/en-US.js index a58c110..6451450 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -73,6 +73,8 @@ export default { trendChart: 'Trend', taskPlaceholder: 'Task mode under development', totalTask: 'Total Tasks', + issuedNum: 'Issued', + partialScheduledNum: 'Partial Scheduled', waitingProduction: 'Waiting', producing: 'Producing', completed: 'Completed', diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index fa8a77d..f5372f9 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -73,6 +73,8 @@ export default { trendChart: '趋势图', taskPlaceholder: '任务模式开发中', totalTask: '任务总数', + issuedNum: '下达数', + partialScheduledNum: '部分排产数', waitingProduction: '待生产', producing: '生产中', completed: '已完成',