温度管理:加变量筛选

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