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 @@