heyang 2 jaren geleden
bovenliggende
commit
741a42b8c4
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      pages_manage/workbench/laboratory/laboratoryInfo.vue

+ 6 - 6
pages_manage/workbench/laboratory/laboratoryInfo.vue

@@ -251,9 +251,6 @@ export default {
   },
   onLoad(option) {
     let self = this;
-	this.firedeviceStatus();
-	this.getDeviceList();
-	this.getListData();  
     if(uni.getStorageSync('saoCodeId')){
       this.saoCodeType = true;
 	  this.subId=uni.getStorageSync('saoCodeId');
@@ -327,6 +324,9 @@ export default {
         this.saoCodeType = false;
       }
     }
+	this.firedeviceStatus();
+	this.getListData();  
+	this.getDeviceListBySub();
 	
   },
   onShow(){
@@ -849,9 +849,9 @@ export default {
         });
       }
     },
-	//获取喇叭列表
-	    async getDeviceList() {
-			let _this=this;
+	   //获取喇叭列表
+	    async getDeviceListBySub() {
+		  let _this=this;
 	      let obj = {
 	        subId: _this.subId,
 	        floorId: _this.itemData.subAddrr.floorId,