温度管理:逻辑优化

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