From 075dc313ab14730045564581ee9494cf76928818 Mon Sep 17 00:00:00 2001 From: liutao <790864623@qq.com> Date: Tue, 7 Jul 2026 15:37:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BF=9D=E9=9A=9C=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/device/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index ef94b014..8c9eba62 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -973,8 +973,8 @@ const deviceStatisticsItems = computed(() => [ { key: 'total', label: '总数', value: deviceStatistics.total }, { key: 'running', label: '运行数', value: deviceStatistics.running }, { key: 'standby', label: '待机数', value: deviceStatistics.standby }, - /* { key: 'fault', label: '故障数', value: deviceStatistics.fault },*/ - { key: 'alarm', label: '报警数', value: deviceStatistics.alarm }, + { key: 'fault', label: '报警数', value: deviceStatistics.fault }, + /*{ key: 'alarm', label: '报警数', value: deviceStatistics.alarm },*/ { key: 'offline', label: '离线数', value: deviceStatistics.offline } ]) @@ -982,8 +982,8 @@ const normalizeDeviceOperatingStatus = (value: string | number | undefined): Dev const text = String(value ?? '').trim().toLowerCase() if (['运行', '运行中', 'running', 'run', '1'].includes(text)) return 'running' if (['待机', '待机中', 'standby', 'idle', '2'].includes(text)) return 'standby' - /*if (['故障', '故障中', 'fault', 'error', '3'].includes(text)) return 'fault'*/ - if (['报警', '报警中', 'alarm', 'warning', '4', '5'].includes(text)) return 'alarm' + if (['故障', '故障中', 'fault', 'error', '3'].includes(text)) return 'fault' +/* if (['报警', '报警中', 'alarm', 'warning', '4', '5'].includes(text)) return 'alarm'*/ return 'offline' }