From 16ae86101edef4e003f685c0af4fef55acef54af Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 22 Jul 2021 18:35:15 +0800 Subject: [PATCH] =?UTF-8?q?CN-65=20fix:=20statistics-legend=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/StatisticsLegend.vue | 7 ++++--- src/views/charts/Chart.vue | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/charts/StatisticsLegend.vue b/src/components/charts/StatisticsLegend.vue index 112048e4..4e59b037 100644 --- a/src/components/charts/StatisticsLegend.vue +++ b/src/components/charts/StatisticsLegend.vue @@ -8,8 +8,8 @@
{{item.legend}}
-
{{unitConvert(item.aggregation.avg)}}
-
{{unitConvert(item.aggregation.max)}}
+
{{unitConvert(item.aggregation.avg, chartInfo.params.unitType).join(' ')}}
+
{{unitConvert(item.aggregation.max, chartInfo.params.unitType).join(' ')}}
@@ -22,7 +22,8 @@ import unitConvert from '@/utils/unit-convert' export default { name: 'StatisticsLegend', props: { - data: Array + data: Array, + chartInfo: Object }, setup () { return { diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 6920053b..7fb117ec 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -72,7 +72,7 @@