From b457fb63e8c6f4d2f6f86775a9611c5e66636d1d Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Sat, 30 Jul 2022 15:30:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Network=20Overview?= =?UTF-8?q?=20=E6=8A=98=E7=BA=BF=E5=9B=BE=20=E4=B8=8B=E6=8B=89=E9=80=89?= =?UTF-8?q?=E6=8B=A9=20markLine=20=E6=97=A0=E5=8F=98=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/NetworkOverviewLine.vue | 12 ++++++++++-- src/views/charts2/charts/options/echartOption.js | 1 - 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/charts2/charts/NetworkOverviewLine.vue b/src/views/charts2/charts/NetworkOverviewLine.vue index 48f42b0f..25f8ba50 100644 --- a/src/views/charts2/charts/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/NetworkOverviewLine.vue @@ -40,6 +40,7 @@ v-model="value2" :disabled="activeShow === 'total'" popper-class="reference-line" + @change="referenceSelectChange" > @@ -113,7 +114,8 @@ export default { activeShow: 'total', mousemoveCursor: '', leftOffset: 0, - sizes: [3, 4, 6, 8, 9, 10] + sizes: [3, 4, 6, 8, 9, 10], + echartsLabelValue: 'Average' } }, watch: { @@ -7114,7 +7116,7 @@ export default { label: { formatter (params) { const arr = unitConvert(params.value, unitTypes.number).join('') - return _this.value2 + '(' + arr + 'packets/s' + ')' + return _this.echartsLabelValue + '(' + arr + 'packets/s' + ')' }, position: 'insideStartTop', color: '#717171', @@ -7196,6 +7198,12 @@ export default { } this.activeShow = 'total' }, + referenceSelectChange (val) { + this.timer = setTimeout(() => { + this.init() + }, 200) + this.echartsLabelValue = val + }, symbolSizeSortChange (index, time) { const dataIntegrationArray = [] if (stackedLineChartOption.series[0]) { diff --git a/src/views/charts2/charts/options/echartOption.js b/src/views/charts2/charts/options/echartOption.js index 779620c6..3d65008c 100644 --- a/src/views/charts2/charts/options/echartOption.js +++ b/src/views/charts2/charts/options/echartOption.js @@ -293,7 +293,6 @@ export const npmLineChartOption = { { type: 'line', symbol: 'circle', - stack: 'network.total', smooth: true, showSymbol: false, emphasis: {