From f6e2d2115c25810fe9856d33d5105287b61d8f1d Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 30 Jun 2020 18:29:58 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-340=20=EF=BC=9Afix=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=90=8Epanel=E9=A1=B5=E9=9D=A2=E9=94=99?= =?UTF-8?q?=E4=B9=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/charts/chart-list.vue | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index d1724ed7a..111fb02f8 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -56,7 +56,7 @@ animation: 150, handle: '.chart-title' }" > -
+
- - - - - { if(item.title.indexOf(searchName)>-1){ item.isLoaded = false; + item.isHide=false; + chartListTmp.push(item); + }else{ + item.isLoaded = false; + item.isHide=true; chartListTmp.push(item); } }); }else{ this.dataTotalListBak.forEach((item)=>{ item.isLoaded = false; + item.isHide=false; chartListTmp.push(item); }); } @@ -1454,8 +1459,10 @@ setChartSize(item, index) { this.$nextTick(() => { let chartBox = document.getElementById("chart-" + item.id); - chartBox.style.width = `${(item.span / 12) * 100}%`; - chartBox.style.height = `${item.height}px`; + if(chartBox){ + chartBox.style.width = `${(item.span / 12) * 100}%`; + chartBox.style.height = `${item.height}px`; + } }); }, getNewTime(time, num) {