From 3bab521a950896760f8d60d05596c720d26257f3 Mon Sep 17 00:00:00 2001 From: zyh Date: Tue, 19 Apr 2022 15:40:40 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1820=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8Ddashbo?= =?UTF-8?q?ard=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart.vue | 16 +++++++- .../chart/chart/chartAutotopology.vue | 7 ++-- .../components/common/project/topologyL5.vue | 40 ++++++++++--------- 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart.vue b/nezha-fronted/src/components/chart/chart.vue index 862f804e4..c9148793d 100644 --- a/nezha-fronted/src/components/chart/chart.vue +++ b/nezha-fronted/src/components/chart/chart.vue @@ -172,6 +172,15 @@ :is-fullscreen="isFullscreen" @chartIsNoData="chartIsNoData" > + @@ -198,7 +207,8 @@ import chartUrl from './chart/chartUrl' import chartValue from './chart/chartValue' import chartHexagonD3 from './chart/chartHexagonD3' import chartMap from './chart/chartMap' -import { getOption, isTimeSeries, isHexagon, isUrl, isText, isChartPie, isChartBar, isTreemap, isLog, isStat, isDiagram, isGroup, isAutotopology, isMap, isAssetInfo, isEndpointInfo, isTable, isGauge, isClock } from './chart/tools' +import chartTopology from './chart/chartTopology' +import { getOption, isTimeSeries, isHexagon, isUrl, isText, isChartPie, isChartBar, isTreemap, isLog, isStat, isDiagram, isGroup, isAutotopology, isMap, isAssetInfo, isEndpointInfo, isTable, isGauge, isClock, isTopology } from './chart/tools' import lodash from 'lodash' export default { @@ -224,7 +234,8 @@ export default { chartUrl, chartValue, chartHexagonD3, - chartMap + chartMap, + chartTopology }, props: { chartInfo: Object, @@ -293,6 +304,7 @@ export default { isTable, isGauge, isClock, + isTopology, chartIsNoData (flag) { this.chartChildrenData = flag }, diff --git a/nezha-fronted/src/components/chart/chart/chartAutotopology.vue b/nezha-fronted/src/components/chart/chart/chartAutotopology.vue index fb47b5912..f6e2bdd53 100644 --- a/nezha-fronted/src/components/chart/chart/chartAutotopology.vue +++ b/nezha-fronted/src/components/chart/chart/chartAutotopology.vue @@ -1,5 +1,5 @@