From 11c8bd2131119902e837da41e10005b6b1316c70 Mon Sep 17 00:00:00 2001 From: liutao <790864623@qq.com> Date: Sat, 27 Jun 2026 10:54:23 +0800 Subject: [PATCH] update --- src/locales/en.ts | 54 +++++++++++++ src/locales/zh-CN.ts | 54 +++++++++++++ src/router/modules/remaining.ts | 4 +- .../dashboard1/dashboard3/index.vue | 78 ++++++++++--------- 4 files changed, 150 insertions(+), 40 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index 25da35c9..5bbc6658 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -177,6 +177,60 @@ export default { } } }, + Dashboard3: { + Header: { + title: 'Device Operation Overview', + subTitle: 'IOT Real-Time Monitoring Center', + currentTime: 'Current Time: ', + lastUpdate: 'Last Updated: ', + refreshRate: 'Refresh: ', + refreshRateValue: 'Every {seconds}s' + }, + Metrics: { + total: 'Total Devices', + online: 'Online', + offline: 'Offline', + running: 'Running', + standby: 'Idle', + fault: 'Alarms' + }, + Status: { + running: 'Running', + standby: 'Idle', + fault: 'Alarm', + offline: 'Offline' + }, + AlarmBoard: { + currentDevice: 'Alarm Device', + todayAlarmDuration: 'Today Alarm Duration', + lastReportTime: 'Last Reported', + alarmPrefix: 'Alarm', + empty: 'No alarm devices' + }, + Detail: { + title: 'Device Operation Details', + carouselText: '{page} · Auto Carousel', + columns: { + deviceName: 'Device Name', + currentStatus: 'Status', + runningTime: 'Running Time (Today)', + standbyTime: 'Idle Time (Today)', + alarmTime: 'Alarm Time (Today)', + efficiency: 'Efficiency (Today)' + }, + empty: 'No device operation data' + }, + Charts: { + last24Hours: 'Last 24 Hours Operation Rate', + last7Days: 'Last 7 Days Operation Rate', + averageRate: 'Average: {value}' + }, + Time: { + minute: '{minute}m', + hour: '{hour}h', + hourMinute: '{hour}h {minute}m' + } + }, Dashboard8: { Header: { title: 'Smart Manufacturing Line Task Overview', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 1a8a9597..c6dfa782 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -177,6 +177,60 @@ export default { } } }, + Dashboard3: { + Header: { + title: '设备运行总览大屏标题', + subTitle: 'IOT 实时监控中心副标题', + currentTime: '当前时间:', + lastUpdate: '最后更新:', + refreshRate: '刷新频率:', + refreshRateValue: '{seconds} 秒刷新' + }, + Metrics: { + total: '设备总数', + online: '在线', + offline: '离线', + running: '运行', + standby: '空闲', + fault: '报警' + }, + Status: { + running: '运行', + standby: '空闲', + fault: '报警', + offline: '离线' + }, + AlarmBoard: { + currentDevice: '当前报警设备', + todayAlarmDuration: '今日累计报警时长', + lastReportTime: '最后上报时间', + alarmPrefix: '报警', + empty: '暂无报警设备' + }, + Detail: { + title: '设备运行明细', + carouselText: '{page} · 自动轮播', + columns: { + deviceName: '设备名称', + currentStatus: '当前状态', + runningTime: '运行时间(今日)', + standbyTime: '空闲时间(今日)', + alarmTime: '报警时间(今日)', + efficiency: '运行效率(今日)' + }, + empty: '暂无设备运行数据' + }, + Charts: { + last24Hours: '近 24 小时运行率趋势', + last7Days: '近 7 天运行率趋势', + averageRate: '平均运行率:{value}' + }, + Time: { + minute: '{minute}分', + hour: '{hour}小时', + hourMinute: '{hour}小时{minute}分' + } + }, Dashboard8: { Header: { title: '智能制造产线任务总览', diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index efc2f1ae..f781c3dc 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -655,10 +655,10 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, { path: '/iot/report/dashboardPage/Dashboard3', - component: () => import('@/views/report/dashboardPage/dashboard3/index.vue'), + component: () => import('@/views/report/dashboardPage/dashboard1/dashboard3/index.vue'), name: 'IotReportDashboard3', meta: { - title: '设备运行总览大屏', + title: t('Dashboard3.Header.title'), hidden: true, noTagsView: true, canTo: true diff --git a/src/views/report/dashboardPage/dashboard1/dashboard3/index.vue b/src/views/report/dashboardPage/dashboard1/dashboard3/index.vue index f02dd17b..f5f90dc5 100644 --- a/src/views/report/dashboardPage/dashboard1/dashboard3/index.vue +++ b/src/views/report/dashboardPage/dashboard1/dashboard3/index.vue @@ -7,14 +7,14 @@
-