From b2ec7e20c0270efe4820f458bbfcf474d9c1f020 Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Fri, 25 Oct 2024 10:44:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=89=E6=8B=A9=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E6=8C=87=E6=A0=87=E5=9B=BE=E8=A1=A8=E6=B6=88=E5=A4=B1?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/govern/device/planData/index.vue | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue
index 46eb089..835f820 100644
--- a/src/views/govern/device/planData/index.vue
+++ b/src/views/govern/device/planData/index.vue
@@ -333,7 +333,9 @@ const nodeClick = async (e: anyObj) => {
}
})
}
- searchForm.value.index = [indexOptions.value[0].id]
+ if (searchForm.value.index.length == 0) {
+ searchForm.value.index = [indexOptions.value[0].id]
+ }
schemeTreeRef.value.getPlanData(deviceData.value)
await setTimeout(() => {
@@ -503,10 +505,10 @@ const init = (flag: boolean) => {
},
backgroundColor: 'rgba(0,0,0,0.35)',
borderWidth: 0,
- formatter(params) {
+ formatter(params: any) {
const xname = params[0].value[0]
let str = `${xname}
`
- params.forEach((el, index) => {
+ params.forEach((el: any, index: any) => {
str += `${el.marker}${el.seriesName.split('(')[0]}:${
el.value[1] ? el.value[1] + ' ' + el.value[2] : '-'
}
`
@@ -595,7 +597,7 @@ const init = (flag: boolean) => {
})
} else {
loading.value = false
- echartsData.value = {}
+ // echartsData.value = {}
}
}
}
@@ -753,6 +755,8 @@ const formatCountOptions = (list: any) => {
}
})
})
+ } else {
+ countData.value = []
}
}
const flag = ref(false)