dedsudiyu il y a 2 ans
Parent
commit
a4f241468f
1 fichiers modifiés avec 3 ajouts et 14 suppressions
  1. 3 14
      src/views/newEvacuationBigData.vue

+ 3 - 14
src/views/newEvacuationBigData.vue

@@ -486,16 +486,7 @@
         //控制器开关
         code:3,
         //喇叭列表
-        trumpetList:[
-          {
-            name:"测试用假数据",
-            deviceSn:"",
-            port:"",
-            deviceIp:"",
-            deviceVol:"",
-            type:false,
-          }
-        ],
+        trumpetList:[],
         //广播历史记录
         inputText:"",
         radioTextList:[],
@@ -784,8 +775,6 @@
         this.$set(this,'floorId',val);
         //获取楼层消息
         this.getHornLastMess();
-        //获取楼层喇叭
-        this.getDeviceList();
         //获取楼层摄像头数据
         this.getCameraByFloor();
         //获取楼层数据
@@ -1627,6 +1616,8 @@
             this.$set(this,'planMapList',roomList);
             //获取相关实验室数据
             this.buttonSubject();
+            //获取楼层喇叭
+            this.getDeviceList();
             //查询当前是否有进行中的疏散
             this.getRedisEvacuation();
             //测试查询预案
@@ -1714,8 +1705,6 @@
             }
             //获取楼层消息
             this.getHornLastMess();
-            //获取楼层喇叭
-            this.getDeviceList();
             //获取楼层摄像头数据
             this.getCameraByFloor();
             //获取楼层数据