温度管理:加变量筛选

This commit is contained in:
fengrong 2024-11-21 14:35:20 +08:00
parent abb63347d1
commit 8a3e3a62e3

View File

@ -134,7 +134,8 @@ const inittemperatureChar = () => {
bottom: 10,
left: 25,
containLabel: true,
borderColor:'transparent',
borderColor:'#ffffff',
borderWidth: 1,
backgroundColor:'rgba(254,55,49,0.20)'
},
xAxis: {
@ -410,7 +411,7 @@ const autoUpdate = () => {
if (!autoUpdateTimer) {
autoUpdateTimer = setInterval(() => {
if(!selectcheck.value.length){
getChartData({deviceId:SelectdeviceId.value,attributes:[]})
getChartData({deviceId:SelectdeviceId.value,attributes:attributesDefault})
}else{
getChartData({deviceId:SelectdeviceId.value,attributes:selectcheck.value})
}
@ -432,7 +433,7 @@ onActivated(() => {
onMounted(() => {
deviceQuery(devicelistData)
// autoUpdate()
autoUpdate()
useEventListener(window, 'resize', echartsResize)
})
onUnmounted(() => {