diff --git a/src/components/offline-device-detail-modal.vue b/src/components/offline-device-detail-modal.vue index 9fb1a5a..0a15077 100644 --- a/src/components/offline-device-detail-modal.vue +++ b/src/components/offline-device-detail-modal.vue @@ -1,5 +1,5 @@ - + diff --git a/src/components/station-card.vue b/src/components/station-card.vue index 9b44bbf..f190036 100644 --- a/src/components/station-card.vue +++ b/src/components/station-card.vue @@ -32,6 +32,13 @@ const offlineDeviceCount = computed(() => { }); return count; }); +const deviceCount = computed(() => { + let count = 0; + Object.values(DeviceType).forEach((deviceType) => { + count += stationDevices.value[deviceType].length; + }); + return count; +}); const devicAlarmCount = computed(() => { let count = 0; Object.values(DeviceType).forEach((deviceType) => { @@ -116,7 +123,7 @@ const theme = useThemeVars(); 离线设备