|
@ -6,7 +6,7 @@ import NetReconnection from 'components/system/NetReconnection.vue' |
|
|
import { formatDateTime, openFullscreen } from 'libs/utils' |
|
|
import { formatDateTime, openFullscreen } from 'libs/utils' |
|
|
import { authRoutes } from 'router/routes' |
|
|
import { authRoutes } from 'router/routes' |
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
import { onMounted, onUnmounted, ref, watch, watchEffect } from 'vue' |
|
|
|
|
|
|
|
|
import { computed, onMounted, onUnmounted, ref, watch, watchEffect } from 'vue' |
|
|
import { useI18n } from 'vue-i18n' |
|
|
import { useI18n } from 'vue-i18n' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
|
|
@ -165,6 +165,10 @@ const statusMap = { |
|
|
name: '设备告警信息', |
|
|
name: '设备告警信息', |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const deviceType = computed(() => { |
|
|
|
|
|
return __DEVICE_TYPE__ |
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
@ -203,7 +207,7 @@ const statusMap = { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="user"> |
|
|
<div class="user"> |
|
|
<span v-if="__DEVICE_TYPE__ === deviceStore.deviceTypeMap.LargeSpaceDM_B"> |
|
|
|
|
|
|
|
|
<span v-if="deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B"> |
|
|
<img v-if="websocketConnected" width="20" :src="WifiConnSvg" alt=""> |
|
|
<img v-if="websocketConnected" width="20" :src="WifiConnSvg" alt=""> |
|
|
<img v-else :src="WifiUnconnSvg" width="20" alt=""> |
|
|
<img v-else :src="WifiUnconnSvg" width="20" alt=""> |
|
|
</span> |
|
|
</span> |
|
|