dedsudiyu преди 2 години
родител
ревизия
f0f2e2b837
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/views/emergencyEvacuationBigOne.vue

+ 3 - 1
src/views/emergencyEvacuationBigOne.vue

@@ -285,6 +285,7 @@
       //获取喇叭列表
       getDeviceList(){
         let obj ={
+          subId:this.subId,
           floorId:this.buttonId,
           page:1,
           pageSize:100,
@@ -346,6 +347,7 @@
             this.address = data.data.deptName+'-'+data.data.buildName+'-'+data.data.floorName;
             this.evacuationType = false;
             this.evacuate();
+            this.getDeviceList();
           }else{
             if(localStorage.getItem('evacuationSubId')){
               console.log("1=================>")
@@ -368,9 +370,9 @@
             }
             this.evacuationType = true;
             this.lineEvacuateTow(this.subId,0);
+            this.getDeviceList();
           }
           this.lablayout();
-          this.getDeviceList();
         });
       },
       //获取实验室数据