heyang hace 2 años
padre
commit
b196274514
Se han modificado 1 ficheros con 15 adiciones y 4 borrados
  1. 15 4
      pages_manage/workbench/laboratory/laboratoryInfo.vue

+ 15 - 4
pages_manage/workbench/laboratory/laboratoryInfo.vue

@@ -246,7 +246,7 @@ export default {
 	  isEvacuate: true, //疏散按钮控制,当为true时候执行疏散
 	  //滑动记录
 	  startPoint: {},
-	 
+
     }
   },
   onLoad(option) {
@@ -325,9 +325,9 @@ export default {
       }
     }
 	this.firedeviceStatus();
-	this.getListData();  
+	this.getListData();
 	this.getDeviceListBySub();
-	
+
   },
   onShow(){
     if(!this.saoCodeType){
@@ -646,7 +646,7 @@ export default {
     //监听设备信息
     getMqttDeviceData(val){
       let self = this;
-      // console.log('页面获取的-设备信息',val)
+       //console.log('页面获取的-设备信息',val)
       for(let i=0;i<val.length;i++){
         for(let k=0;k<self.itemData.labHardwareVOList.length;k++){
           if(val[i].num == self.itemData.labHardwareVOList[k].id){
@@ -660,7 +660,18 @@ export default {
               self.itemData.labHardwareVOList[k].state.code = 2;
             }
           }
+		  if(self.itemData.labHardwareVOList[k].hardwareTypeEnum.hardwareTypeCode == '2'){
+		  	for(let b=0;b<self.fanList.length;b++){
+		  	  if(self.fanList[b].dictValue==self.itemData.labHardwareVOList[k].triggerModes){
+		  		self.itemData.labHardwareVOList[k].dictLabel=self.fanList[b].dictLabel
+		  	  }
+		  	}
+		  }
+		  
         }
+		
+		
+		
       }
     },
     infoMaxBoxClick(){