1
This commit is contained in:
		
							parent
							
								
									126cfc1380
								
							
						
					
					
						commit
						4bfa7e7852
					
				@ -782,6 +782,7 @@
 | 
			
		||||
			},
 | 
			
		||||
			getStatusNew(el) {
 | 
			
		||||
				var name = ''
 | 
			
		||||
				if (el.equipmentName == 30) {
 | 
			
		||||
					if (el.targetValue == 1) {
 | 
			
		||||
						if (el.equipmentNumber == 0) {
 | 
			
		||||
							name = '目标' + el.environmentDataId
 | 
			
		||||
@ -797,6 +798,9 @@
 | 
			
		||||
							name = el.equipmentNumber + '#' + el.environmentDataId
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
				} else {
 | 
			
		||||
					name = el.environmentDataId
 | 
			
		||||
				}
 | 
			
		||||
				return name
 | 
			
		||||
			},
 | 
			
		||||
			// 气象站
 | 
			
		||||
@ -827,8 +831,7 @@
 | 
			
		||||
									res1.data.forEach((el1, index) => {
 | 
			
		||||
										el.weatherListChild.push({
 | 
			
		||||
											...el1,
 | 
			
		||||
											environmentDataId: this.getStatusNew(
 | 
			
		||||
												el1),
 | 
			
		||||
											environmentDataId: this.getStatusNew(el1),
 | 
			
		||||
										})
 | 
			
		||||
									})
 | 
			
		||||
									this.updateTimeWeather.push(res.data[0])
 | 
			
		||||
@ -890,7 +893,12 @@
 | 
			
		||||
						method: 'GET'
 | 
			
		||||
					}).then(res => {
 | 
			
		||||
						if (res.code == 200) {
 | 
			
		||||
							el.equipmentName30ListChild = res.data;
 | 
			
		||||
							res.data.forEach((el1, index) => {
 | 
			
		||||
								el.equipmentName30ListChild.push({
 | 
			
		||||
									...el1,
 | 
			
		||||
									environmentDataId: this.getStatusNew(el1),
 | 
			
		||||
								})
 | 
			
		||||
							})
 | 
			
		||||
							this.updateTime30.push(res.data[0])
 | 
			
		||||
						}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user