From 14a8365e20b40e2b826d68677e68de6b3b8766f0 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 11 Oct 2021 19:12:52 +0800 Subject: [PATCH] =?UTF-8?q?CN-197=20perf:=20=E8=B0=83=E6=95=B4=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E7=9A=84tooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/StatisticsLegend.vue | 9 +- src/components/entities/EntityList.vue | 3 - src/components/entities/entities.scss | 3 + src/utils/unit-convert.js | 25 ++++- src/views/charts/Chart.vue | 113 +++++++++------------ src/views/entities/EntityExplorer.vue | 14 +-- 6 files changed, 87 insertions(+), 80 deletions(-) diff --git a/src/components/charts/StatisticsLegend.vue b/src/components/charts/StatisticsLegend.vue index e2c72647..6b74988e 100644 --- a/src/components/charts/StatisticsLegend.vue +++ b/src/components/charts/StatisticsLegend.vue @@ -10,8 +10,8 @@
{{item.legend}}
-
{{unitConvert(item.aggregation.avg, chartInfo.params.unitType).join(' ')}}
-
{{unitConvert(item.aggregation.max, chartInfo.params.unitType).join(' ')}}
+
{{valueToRangeValue(item.aggregation.avg, chartInfo.params.unitType).join(' ')}}
+
{{valueToRangeValue(item.aggregation.max, chartInfo.params.unitType).join(' ')}}
@@ -20,7 +20,7 @@