From fa205327e69cbe8526571cd1e8812e4b25c62d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 26 Sep 2023 18:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/board/GPS/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/board/GPS/index.vue b/ruoyi-ui/src/views/board/GPS/index.vue index ae87eab..fd79ef6 100644 --- a/ruoyi-ui/src/views/board/GPS/index.vue +++ b/ruoyi-ui/src/views/board/GPS/index.vue @@ -55,8 +55,8 @@
监控单元数量
设备数量
在线设备数量
-
{{ num1 }}
-
{{ num2 }}
+
{{ num2 }}
+
{{ num1 }}
{{ num3 }}
@@ -140,6 +140,7 @@ export default { }, methods: { async getData() { + if(this.$store.getters.sceneId === null) return await this.createMap() await this.getAlarmStats() await this.getAubDevice() @@ -227,6 +228,7 @@ export default { map.setFitView() }, async getAlarmStats() { + if(this.$store.getters.sceneId === null) return const {data} = await alarmStats(this.$store.getters.sceneId) let option1 = { ...this.chart1Option,