From 99dca724f15710f86b845ccdb3d2d30361146b4b Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 18 Nov 2021 17:18:16 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1276=20fix:=20=E9=80=9A=E8=BF=87=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E8=AE=B0=E5=BD=95=E6=9F=A5=E8=AF=A2=20=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E9=94=99=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 --- nezha-fronted/src/components/charts/line-chart-block.vue | 4 ++-- nezha-fronted/src/components/common/searchInput.vue | 2 +- nezha-fronted/src/components/common/table/nzDataList.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue index d084d7e68..9c2a4f089 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -211,7 +211,7 @@ import chartDataFormat from './chartDataFormat' import { randomcolor } from '../common/js/radomcolor/randomcolor.js' import chartConfig from '../page/dashboard/overview/chartConfig' import { getChart, setChart, lineChartMove, getMousePoint } from '../common/js/common' -import { getMetricTypeValue, chartResizeTool, formatScientificNotation, dealLegendAlias} from '../common/js/tools' +import { getMetricTypeValue, chartResizeTool, formatScientificNotation, dealLegendAlias } from '../common/js/tools' import moment from 'moment-timezone' import chartDataList from '@/components/common/mixin/chartDataList' @@ -642,7 +642,7 @@ export default { // chartId='screenShowArea'; } const chartWidth = ele.clientWidth - this.stepWidth = document.getElementById('listContainer').offsetWidth / 12 + this.stepWidth = this.chartInfo.groupId ? (document.getElementById('listContainer').offsetWidth / 12) - 10 : document.getElementById('listContainer').offsetWidth / 12 const stackIconBorderColor = (chartInfo.type === 'stackArea' ? '#53a3cb' : '#7e7e7e') const stackIconChooseBorderColor = (chartInfo.type === 'stackArea' ? '#7e7e7e' : '#53a3cb') let maxValueCopies = this.getMaxValue(dataArg, chartInfo) diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index e37bdad24..9f3ebc2de 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -954,7 +954,7 @@ export default { this.sreach_num = this.select_list.length this.select_list.forEach(val => { this.searchLabelList.forEach((item, index) => { - if (val.id == item.id) { + if (val.label == item.label) { this.searchLabelList.splice(index, 1) } }) diff --git a/nezha-fronted/src/components/common/table/nzDataList.vue b/nezha-fronted/src/components/common/table/nzDataList.vue index 6a51af19c..2d4bf356d 100644 --- a/nezha-fronted/src/components/common/table/nzDataList.vue +++ b/nezha-fronted/src/components/common/table/nzDataList.vue @@ -11,7 +11,7 @@