dedsudiyu 2 年之前
父節點
當前提交
75c6cd75cd
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/emergencyEvacuationBig.vue

+ 3 - 1
src/views/emergencyEvacuationBig.vue

@@ -207,7 +207,6 @@
     },
     mounted(){
       this.subscriptionMQTT();
-      this.getDeviceList();
     },
     methods:{
       //获取实验室的疏散数据
@@ -284,6 +283,7 @@
       //获取喇叭列表
       getDeviceList(){
         let obj ={
+          subId:this.subId,
           floorId:5,
           page:1,
           pageSize:100,
@@ -342,6 +342,7 @@
             this.title = data.data.subName;
             this.evacuationType = false;
             this.evacuate();
+            this.getDeviceList();
           }else{
             if(localStorage.getItem('evacuationSubId')){
               this.subId = localStorage.getItem('evacuationSubId');
@@ -354,6 +355,7 @@
             }
             this.evacuationType = true;
             this.lineEvacuateTow(this.subId,0);
+            this.getDeviceList();
           }
         });
       },