This commit is contained in:
home孙 2025-05-08 17:51:15 +08:00
parent 126cfc1380
commit 4bfa7e7852

View File

@ -782,6 +782,7 @@
}, },
getStatusNew(el) { getStatusNew(el) {
var name = '' var name = ''
if (el.equipmentName == 30) {
if (el.targetValue == 1) { if (el.targetValue == 1) {
if (el.equipmentNumber == 0) { if (el.equipmentNumber == 0) {
name = '目标' + el.environmentDataId name = '目标' + el.environmentDataId
@ -797,6 +798,9 @@
name = el.equipmentNumber + '#' + el.environmentDataId name = el.equipmentNumber + '#' + el.environmentDataId
} }
} }
} else {
name = el.environmentDataId
}
return name return name
}, },
// //
@ -827,8 +831,7 @@
res1.data.forEach((el1, index) => { res1.data.forEach((el1, index) => {
el.weatherListChild.push({ el.weatherListChild.push({
...el1, ...el1,
environmentDataId: this.getStatusNew( environmentDataId: this.getStatusNew(el1),
el1),
}) })
}) })
this.updateTimeWeather.push(res.data[0]) this.updateTimeWeather.push(res.data[0])
@ -890,7 +893,12 @@
method: 'GET' method: 'GET'
}).then(res => { }).then(res => {
if (res.code == 200) { 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]) this.updateTime30.push(res.data[0])
} }