1
This commit is contained in:
		
							parent
							
								
									60dc3db7aa
								
							
						
					
					
						commit
						bf60c2e1e7
					
				@ -249,7 +249,7 @@ export default {
 | 
				
			|||||||
            deviceName: 1,
 | 
					            deviceName: 1,
 | 
				
			||||||
            controlList: [],
 | 
					            controlList: [],
 | 
				
			||||||
            statusInterval: null,//status状态的Interval
 | 
					            statusInterval: null,//status状态的Interval
 | 
				
			||||||
            statusTime: 3,//status状态的秒数
 | 
					            statusTime: 2,//status状态的秒数
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    watch: {
 | 
					    watch: {
 | 
				
			||||||
@ -551,19 +551,21 @@ export default {
 | 
				
			|||||||
                });
 | 
					                });
 | 
				
			||||||
                this.api.getControlRtDatastation(formData).then(res => {
 | 
					                this.api.getControlRtDatastation(formData).then(res => {
 | 
				
			||||||
                    this.controlList = []
 | 
					                    this.controlList = []
 | 
				
			||||||
                    res.data.data.forEach((el, index) => {
 | 
					                    if (res.data.code == 200) {
 | 
				
			||||||
                        list.forEach((el1, index1) => {
 | 
					                        res.data.data.forEach((el, index) => {
 | 
				
			||||||
                            if (el.formula == el1.value) {
 | 
					                            list.forEach((el1, index1) => {
 | 
				
			||||||
                                // console.log(el1);
 | 
					                                if (el.formula == el1.value) {
 | 
				
			||||||
                                var num = el.environmentData + el1.unit
 | 
					                                    // console.log(el1);
 | 
				
			||||||
                                this.controlList.push({
 | 
					                                    var num = el.environmentData + el1.unit
 | 
				
			||||||
                                    ...el,
 | 
					                                    this.controlList.push({
 | 
				
			||||||
                                    num: num,
 | 
					                                        ...el,
 | 
				
			||||||
                                    img: require(`../../assets/image/real-time-${el.formula}.png`)
 | 
					                                        num: num,
 | 
				
			||||||
                                })
 | 
					                                        img: require(`../../assets/image/real-time-${el.formula}.png`)
 | 
				
			||||||
                            }
 | 
					                                    })
 | 
				
			||||||
 | 
					                                }
 | 
				
			||||||
 | 
					                            })
 | 
				
			||||||
                        })
 | 
					                        })
 | 
				
			||||||
                    })
 | 
					                    }
 | 
				
			||||||
                    // console.log(this.controlList);
 | 
					                    // console.log(this.controlList);
 | 
				
			||||||
                })
 | 
					                })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -638,6 +640,11 @@ export default {
 | 
				
			|||||||
                    }, 10);
 | 
					                    }, 10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
 | 
					                    this.statusList = []
 | 
				
			||||||
 | 
					                    this.fanStatus = {
 | 
				
			||||||
 | 
					                        name: '风机', open: 0, status: []
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    this.$forceUpdate();
 | 
				
			||||||
                    // this.$message.error(res.data.msg);
 | 
					                    // this.$message.error(res.data.msg);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user