温度管理:逻辑优化
This commit is contained in:
parent
a82173915f
commit
7acd5958c4
@ -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
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
checkList.value=attributesDefault
|
if(!selectcheck.value.length){
|
||||||
/* checkList.value=res.data.map((item) => {
|
checkList.value=attributesDefault
|
||||||
return item.measPointCode
|
}else{
|
||||||
})*/
|
checkList.value=selectcheck.value
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user