From 7c08bb7154d0a2597e735b0bd21c6c13d6647153 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 17 Mar 2026 16:13:28 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9ADashboard1=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E9=80=82=E9=85=8D=E4=B8=AD=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en.ts | 72 +++++++++++++++++++ src/locales/zh-CN.ts | 72 +++++++++++++++++++ .../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 +++-- 10 files changed, 338 insertions(+), 91 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index 49818cca..7ab1f06d 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -99,6 +99,78 @@ 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: { diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index a82a3411..be57a502 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -99,6 +99,78 @@ 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: { 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 @@