温度管理:逻辑优化
This commit is contained in:
parent
a82173915f
commit
7acd5958c4
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user