From 50862cbfac51334eea45b3410e5cf21fc50cc6da Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 17 Mar 2026 18:52:17 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"style=EF=BC=9AdashBoard1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A4=A7=E5=B1=8F=E9=80=82=E9=85=8D=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E6=96=87"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 39bfd8a2e96a5cf48e959d77b6b2db58714ef02c. --- src/locales/en.ts | 161 +++++++++++++++++- src/locales/zh-CN.ts | 161 +++++++++++++++++- .../dashboard1/components/DashboardHeader.vue | 23 ++- .../dashboard1/components/DeviceOverview.vue | 40 ++++- .../dashboard1/components/EnergyMonitor.vue | 67 +++++--- .../dashboard1/components/EventReminder.vue | 24 ++- .../dashboard1/components/PaymentMethod.vue | 53 +++--- .../dashboard1/components/ProductionTrend.vue | 19 ++- .../dashboard1/components/TaskList.vue | 41 +++-- .../report/dashboardPage/dashboard1/index.vue | 18 +- .../dashboard8/components/DashboardHeader.vue | 6 +- .../dashboard8/components/DayCapacity.vue | 66 ++++--- .../dashboard8/components/EnergyTrend.vue | 62 ++++--- .../dashboard8/components/MonthCapacity.vue | 66 ++++--- .../dashboard8/components/OpsTrend.vue | 32 +++- .../dashboard8/components/QualityTrend.vue | 67 ++++++-- .../dashboard8/components/RealAlarm.vue | 57 ++++--- .../dashboard8/components/TaskBoard.vue | 22 +-- .../dashboard8/components/TodayOps.vue | 21 ++- .../dashboard8/components/WeekTrend.vue | 40 +++-- 20 files changed, 801 insertions(+), 245 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index e8dfa023..7ab1f06d 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -99,6 +99,165 @@ export default { messageRouteMissing: 'Preview route is not configured', messageDevicePointRequired: 'Please configure at least one device and point group', messageMissingId: 'Missing record ID, unable to edit' + }, + Dashboard1: { + header: { + title: 'Production Line Dashboard', + weather: { + cloudyToClear: 'Cloudy to clear' + }, + weekDays: { + Sunday: 'Sunday', + Monday: 'Monday', + Tuesday: 'Tuesday', + Wednesday: 'Wednesday', + Thursday: 'Thursday', + Friday: 'Friday', + Saturday: 'Saturday' + } + }, + deviceIdPrefix: 'ID:', + defaultDeviceName: 'Default Device', + statusOffline: 'Offline', + statusRunning: 'Running', + statusStandby: 'Standby', + statusFault: 'Fault', + deviceOverview: { + title: 'Device Overview', + device: 'Devices', + running: 'Running', + idle: 'Standby', + alarm: 'Alarms', + utilization: 'Utilization', + faultRate: 'Fault Rate' + }, + alarms: { + title: 'Real-time Alarms', + tag: 'Scrolling', + levelSevere: 'Severe', + levelWarn: 'Warning', + levelInfo: 'Info' + }, + productionTrend: { + title: 'Output Trend', + tagToday: 'Today', + seriesOutput: 'Output' + }, + eventReminder: { + title: 'Event Reminder', + modeDevice: 'Device', + modeMold: 'Mold', + check: 'Inspection', + maintain: 'Maintenance', + repair: 'Repair' + }, + taskList: { + title: 'Task List', + columns: { + code: 'Code', + name: 'Name', + type: 'Type', + finishStatus: 'Completion', + result: 'Result' + }, + finishPending: 'Pending', + finishDone: 'Completed', + finishCanceled: 'Canceled', + resultPass: 'Pass', + resultFail: 'Fail' + }, + energyMonitor: { + title: 'Energy Monitor', + selectPlaceholder: 'Please select', + seriesEnergy: 'Energy' + } + } + }, + Dashboard8: { + Header: { + title: 'Smart Manufacturing Line Task Overview', + subTitle: 'INTELLIGENT MANUFACTURING REAL-TIME DASHBOARD' + }, + TaskBoard: { + title: 'Line Task Board', + tag: 'Auto refresh · Scrolling', + statusCompleted: 'Completed', + statusLowProgress: 'Behind', + columns: { + lineName: 'Line', + planNo: 'Plan No.', + productName: 'Product', + planQty: 'Planned', + doneQty: 'Completed', + passRate: 'Pass Rate' + } + }, + DayCapacity: { + title: 'Daily Capacity', + tag: 'Today', + metrics: { + orders: 'Orders', + scheduled: 'Scheduled', + produced: 'Produced', + rate: 'Quality Rate' + }, + chart: { + scheduled: 'Scheduled', + produced: 'Produced' + } + }, + MonthCapacity: { + title: 'Monthly Capacity', + tag: 'This month', + metrics: { + orders: 'Orders', + scheduled: 'Scheduled', + produced: 'Produced', + rate: 'Quality Rate' + }, + chart: { + scheduled: 'Scheduled', + produced: 'Produced' + } + }, + WeekTrend: { + title: 'Weekly Output Trend', + legendOutput: 'Output', + legendPlan: 'Plan', + seriesPlanOutput: 'Planned Output', + seriesActualOutput: 'Actual Output' + }, + OpsTrend: { + title: 'Completed Output', + defaultLine: 'All lines', + yAxisName: 'Completed Output', + seriesName: 'Completed Output', + summary: '{line} · Avg {value}' + }, + TodayOps: { + title: 'Today Power/Utilization', + empty: 'No data', + powerOnRate: 'Power-on Rate', + utilizationRate: 'Utilization' + }, + QualityTrend: { + title: 'Product Quality Trend', + tag: 'Daily (All lines)', + seriesName: 'Pass Rate', + markLineAverage: 'Avg {value}%', + markLineAverageName: 'Average' + }, + RealAlarm: { + title: 'Real-time Alarms', + tag: 'Scrolling', + levelSevere: 'Severe', + levelWarn: 'Warning', + levelInfo: 'Info' + }, + EnergyTrend: { + title: 'Weekly Energy Trend', + selectPlaceholder: 'Please select', + seriesActualEnergy: 'Actual Energy (kWh)' } }, ErpStock: { @@ -3805,8 +3964,6 @@ export default { dialogCollectionTimeLabel: 'Collection Time', dialogCollectionTimeStartPlaceholder: 'Start Time', dialogCollectionTimeEndPlaceholder: 'End Time', - dialogPointFilterLabel: 'Point Filter', - dialogPointFilterPlaceholder: 'Please select points', dialogSearchButtonText: 'Search', dialogResetButtonText: 'Reset', dialogRecordCollectionTimePrefix: 'Collection Time: ', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index dd37564f..be57a502 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -99,6 +99,165 @@ export default { messageRouteMissing: '未配置预览路由', messageDevicePointRequired: '请至少配置一组设备和点位', messageMissingId: '缺少数据编号,无法编辑' + }, + Dashboard1: { + header: { + title: '产线运行看板', + weather: { + cloudyToClear: '多云转晴' + }, + weekDays: { + Sunday: '星期日', + Monday: '星期一', + Tuesday: '星期二', + Wednesday: '星期三', + Thursday: '星期四', + Friday: '星期五', + Saturday: '星期六' + } + }, + deviceIdPrefix: 'ID:', + defaultDeviceName: '默认设备', + statusOffline: '离线', + statusRunning: '运行', + statusStandby: '待机', + statusFault: '故障', + deviceOverview: { + title: '设备概况', + device: '设备数量', + running: '运行数量', + idle: '待机数量', + alarm: '报警数量', + utilization: '稼动率', + faultRate: '故障率' + }, + alarms: { + title: '实时报警信息', + tag: '滚动展示', + levelSevere: '严重', + levelWarn: '警告', + levelInfo: '提示' + }, + productionTrend: { + title: '产量趋势', + tagToday: '今日', + seriesOutput: '产量' + }, + eventReminder: { + title: '事件提醒', + modeDevice: '设备', + modeMold: '模具', + check: '点检', + maintain: '保养', + repair: '维修' + }, + taskList: { + title: '任务列表', + columns: { + code: '编号', + name: '名称', + type: '类型', + finishStatus: '完成状态', + result: '结果' + }, + finishPending: '待完成', + finishDone: '已完成', + finishCanceled: '已取消', + resultPass: '通过', + resultFail: '不通过' + }, + energyMonitor: { + title: '能耗监测', + selectPlaceholder: '请选择', + seriesEnergy: '能耗' + } + } + }, + Dashboard8: { + Header: { + title: '智能制造产线任务总览', + subTitle: '智能制造实时看板' + }, + TaskBoard: { + title: '产线任务看板', + tag: '实时刷新 · 滚动展示', + statusCompleted: '已完成', + statusLowProgress: '进度偏低', + columns: { + lineName: '产线名称', + planNo: '计划单', + productName: '产品名称', + planQty: '计划数量', + doneQty: '完工数量', + passRate: '合格率' + } + }, + DayCapacity: { + title: '日产能达成情况', + tag: '当日维度', + metrics: { + orders: '排产单数量', + scheduled: '已排产数量', + produced: '已生产数量', + rate: '产能合格率' + }, + chart: { + scheduled: '已排产', + produced: '已生产' + } + }, + MonthCapacity: { + title: '月产能达成情况', + tag: '当月累计', + metrics: { + orders: '排产单数量', + scheduled: '已排产数量', + produced: '已生产数量', + rate: '产能合格率' + }, + chart: { + scheduled: '已排产', + produced: '已生产' + } + }, + WeekTrend: { + title: '周生产趋势', + legendOutput: '产量', + legendPlan: '计划', + seriesPlanOutput: '计划产量', + seriesActualOutput: '实际产量' + }, + OpsTrend: { + title: '产能完成数', + defaultLine: '全部产线', + yAxisName: '产能完成数', + seriesName: '产能完成数', + summary: '{line} · 日均完成 {value}' + }, + TodayOps: { + title: '今日开机率/稼动率', + empty: '暂无数据', + powerOnRate: '开机率', + utilizationRate: '稼动率' + }, + QualityTrend: { + title: '成品检合格率趋势图', + tag: '按天统计(全产线)', + seriesName: '合格率', + markLineAverage: '平均 {value}%', + markLineAverageName: '平均值' + }, + RealAlarm: { + title: '实时报警信息', + tag: '滚动展示', + levelSevere: '严重', + levelWarn: '警告', + levelInfo: '提示' + }, + EnergyTrend: { + title: '能耗周趋势', + selectPlaceholder: '请选择', + seriesActualEnergy: '实际能耗(kWh)' } }, ErpStock: { @@ -3649,8 +3808,6 @@ export default { dialogCollectionTimeLabel: '采集时间', dialogCollectionTimeStartPlaceholder: '开始时间', dialogCollectionTimeEndPlaceholder: '结束时间', - dialogPointFilterLabel: '点位筛选', - dialogPointFilterPlaceholder: '请选择点位', dialogSearchButtonText: '查询', dialogResetButtonText: '重置', dialogRecordCollectionTimePrefix: '采集时间:', diff --git a/src/views/report/dashboardPage/dashboard1/components/DashboardHeader.vue b/src/views/report/dashboardPage/dashboard1/components/DashboardHeader.vue index 7042234b..e61c8a5b 100644 --- a/src/views/report/dashboardPage/dashboard1/components/DashboardHeader.vue +++ b/src/views/report/dashboardPage/dashboard1/components/DashboardHeader.vue @@ -43,7 +43,7 @@ filter="url(#frameGlow)" /> -
产线运行看板
+
{{ t('Dashboard1.header.title') }}
@@ -64,13 +64,17 @@