温度管理:逻辑优化

This commit is contained in:
fengrong 2024-11-25 16:21:54 +08:00
parent a82173915f
commit 7acd5958c4

View File

@ -95,6 +95,7 @@ const deviceQuery = (data: any) => {
})
}
const handleNodeClick = (data: any) => {
selectcheck.value=[]
SelectdeviceId.value=data.id
state.charts.temperatureChart.clear()
console.log(JSON.stringify({deviceId:SelectdeviceId.value,attributes:attributesDefault}))
@ -293,10 +294,11 @@ const variableList = () =>{
measPointCode: item.measPointCode
}
})
if(!selectcheck.value.length){
checkList.value=attributesDefault
/* checkList.value=res.data.map((item) => {
return item.measPointCode
})*/
}else{
checkList.value=selectcheck.value
}
}
})