diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index 9e16f431..9e866db7 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -962,7 +962,7 @@ 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: 'fault', label: '故障数', value: deviceStatistics.fault },*/ { key: 'alarm', label: '报警数', value: deviceStatistics.alarm }, { key: 'offline', label: '离线数', value: deviceStatistics.offline } ]) @@ -971,7 +971,7 @@ 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 (['故障', '故障中', 'fault', 'error', '3'].includes(text)) return 'fault'*/ if (['报警', '报警中', 'alarm', 'warning', '4', '5'].includes(text)) return 'alarm' return 'offline' } @@ -2047,7 +2047,7 @@ const handleShowDeviceAlarmHistory = async () => {