温度管理:加变量筛选
This commit is contained in:
parent
abb63347d1
commit
8a3e3a62e3
@ -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(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user