|
|
|
|
@ -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 () => {
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.device-statistics {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
|
|
gap: 10px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
@ -2086,7 +2086,7 @@ const handleShowDeviceAlarmHistory = async () => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-statistics__item--alarm .device-statistics__value {
|
|
|
|
|
color: #e6a23c;
|
|
|
|
|
color: #f56c6c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-statistics__item--offline .device-statistics__value,
|
|
|
|
|
|