diff --git a/src/assets/imgs/dashboard3.png b/src/assets/imgs/dashboard3.png new file mode 100644 index 00000000..d2125dbd Binary files /dev/null and b/src/assets/imgs/dashboard3.png differ diff --git a/src/views/report/dashboardList/index.vue b/src/views/report/dashboardList/index.vue index 4e430cd4..61010def 100644 --- a/src/views/report/dashboardList/index.vue +++ b/src/views/report/dashboardList/index.vue @@ -153,6 +153,7 @@ import request from '@/config/axios' import defaultImage from '@/assets/imgs/logo.png' import dashboardImage1 from '@/assets/imgs/dashboard1.png' import dashboardImage2 from '@/assets/imgs/dashboard2.png' +import dashboardImage3 from '@/assets/imgs/dashboard3.png' import { OrganizationApi } from '@/api/mes/organization' import { handleTree } from '@/utils/tree' import { DeviceApi } from '@/api/iot/device' @@ -185,7 +186,7 @@ const total = ref(0) const getDashboardImage = (item: DashboardItem) => { if (item.type === '2') return dashboardImage1 if (item.type === '1') return dashboardImage2 - if (item.type === '3') return dashboardImage1 + if (item.type === '3') return dashboardImage3 return item.indexImage || defaultImage } diff --git a/src/views/report/dashboardPage/dashboard3/index.vue b/src/views/report/dashboardPage/dashboard3/index.vue new file mode 100644 index 00000000..f5f90dc5 --- /dev/null +++ b/src/views/report/dashboardPage/dashboard3/index.vue @@ -0,0 +1,939 @@ + + + + + + + + + + {{ t('Header.subTitle') }} + + {{ t('Header.title') }} + + {{ t('Header.currentTime') }}{{ currentTime }} + {{ t('Header.lastUpdate') }}{{ lastUpdateTime || '-' }} + + {{ t('Header.refreshRate') }}{{ t('Header.refreshRateValue', { seconds: 15 }) }} + + + + + + + + + + + + + {{ card.label }} + + + {{ card.value }} + {{ formatPercent(card.percent) }} + + + + + + {{ t('AlarmBoard.currentDevice') }} + {{ t('AlarmBoard.todayAlarmDuration') }} + {{ t('AlarmBoard.lastReportTime') }} + + + + {{ item.name }} + {{ t('AlarmBoard.alarmPrefix') }} {{ formatMinutes(item.alarmMinutes) }} + {{ item.lastReportTime }} + + + {{ t('AlarmBoard.empty') }} + + + + + + {{ t('Detail.title') }} + {{ t('Detail.carouselText', { page: detailPageText }) }} + + + + {{ t('Detail.columns.deviceName') }} + {{ t('Detail.columns.currentStatus') }} + {{ t('Detail.columns.runningTime') }} + {{ t('Detail.columns.standbyTime') }} + {{ t('Detail.columns.alarmTime') }} + {{ t('Detail.columns.efficiency') }} + + + + {{ row.name }} + + {{ statusText[row.status] }} + + {{ formatMinutes(row.runningMinutes) }} + {{ formatMinutes(row.standbyMinutes) }} + {{ formatMinutes(row.alarmMinutes) }} + {{ formatPercent(row.utilizationRate) }} + + + {{ t('Detail.empty') }} + + + + + + + {{ t('Charts.last24Hours') }} + {{ t('Charts.averageRate', { value: formatPercent(todayAverageRate) }) }} + + + + + + {{ t('Charts.last7Days') }} + {{ t('Charts.averageRate', { value: formatPercent(sevenDayAverageRate) }) }} + + + + + + + + + + +