+
+
当前没有离线设备
-
-
+
-
+
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();
离线设备
- {{ offlineDeviceCount }}
+ {{ offlineDeviceCount }}/{{ deviceCount }}
台