|
|
@@ -0,0 +1,40 @@
|
|
|
+<template>
|
|
|
+ <div class="device_stat">
|
|
|
+ <span>总设备数:{{ device_total }} 台</span>
|
|
|
+ <span>在线率:{{ online_rate }} %</span>
|
|
|
+ <span style="color: rgb(36, 45, 54);font-size: 18px;font-weight: bold;">|</span>
|
|
|
+ <span><img src="/images/camer.png">在线:{{ device_online }}</span>
|
|
|
+ <span><img src="/images/camer.png">离线:{{ device_offline }}</span>
|
|
|
+ <span><img src="/images/camer.png">告警:{{ device_alarm }}</span>
|
|
|
+ <span><img src="/images/camer.png">故障:{{ device_exption }}</span>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script setup>
|
|
|
+const device_total=ref(10)
|
|
|
+const online_rate=ref(90)
|
|
|
+const device_online = ref(9)
|
|
|
+const device_offline = ref(1)
|
|
|
+const device_alarm = ref(1)
|
|
|
+const device_exption = ref(0)
|
|
|
+</script>
|
|
|
+<style>
|
|
|
+.device_stat{
|
|
|
+ position: fixed;
|
|
|
+ right: 50px;
|
|
|
+ top: 0;
|
|
|
+ height: 60px;
|
|
|
+ line-height: 60px;
|
|
|
+ display: flex;
|
|
|
+ color: #fff;
|
|
|
+ z-index: 10;
|
|
|
+ font-size: 12px;
|
|
|
+ span{
|
|
|
+ margin-right: 10px;
|
|
|
+ img{
|
|
|
+ margin-right: 2px;
|
|
|
+ opacity: 0.4;
|
|
|
+ vertical-align: sub;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|