From c4d1b7013d44fd06182c2499a1cfc486f9bdeb97 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 17 May 2023 17:51:48 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2827=20fix=EF=BC=9ADashboard=20=E5=BF=AB?= =?UTF-8?q?=E7=85=A7=E6=96=87=E4=BB=B6=EF=BC=8C=E5=B0=86=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E6=94=BE=E5=A4=A7=E5=88=B0=E6=9F=90=E4=B8=80=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=AE=B5=EF=BC=8CY=E8=BD=B4=20=E8=AE=A1=E7=AE=97=E6=9C=89?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/chart/chart/chartTimeSeries.vue | 7 +++++-- nezha-fronted/static/config.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue index 85b89035f..10a25cb62 100644 --- a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue +++ b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue @@ -7,6 +7,7 @@
!this.$refs.chartLegend.isGrey[seriesIndex]) dataArg.forEach(item => { item.data = item.data.filter(value => value[0] > params.batch[0].startValue && value[0] < params.batch[0].endValue) }) @@ -210,7 +212,8 @@ export default { } else { // 处理点击后的 Y轴 const chartInfo = self.chartInfo - const dataArg = self.series + let dataArg = self.$loadsh.cloneDeep(self.series) + dataArg = dataArg.filter((seriesItem, seriesIndex) => !this.$refs.chartLegend.isGrey[seriesIndex]) const maxValueCopies = self.getMaxValue(dataArg, chartInfo) const maxValue = maxValueCopies.maxValue const copies = maxValueCopies.copies diff --git a/nezha-fronted/static/config.json b/nezha-fronted/static/config.json index 0ba67a3d0..63464a26a 100644 --- a/nezha-fronted/static/config.json +++ b/nezha-fronted/static/config.json @@ -1 +1 @@ -{"baseUrl":"http://192.168.44.22/", "version": "22.05"} +{"baseUrl":"https://192.168.44.248/", "version": "22.05"}