From 04bc60df2bca5deffc847795ed9a0cb8ccd91eb7 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 20 May 2021 17:21:38 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-645=20feat:=20overview=E5=8F=B3=E4=B8=8B?= =?UTF-8?q?=E5=9B=BE=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/language/en.js | 1 + .../components/page/dashboard/overview/chart.vue | 2 +- .../page/dashboard/overview/overview.vue | 14 +++++++------- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 31286586a..7aaa32002 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -433,6 +433,7 @@ const en = { asset: { title: 'Asset', assetType: 'Asset type', + assetState: 'Asset state', modelStat: 'Model', dcStat: 'Data center', num: 'Num', diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue index a5538c7b7..efaabe119 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue @@ -111,7 +111,7 @@ export default { const type = legendData.find(item => { return item[0] == name }) - return type ? `${name} (${type[1]}%)` : null + return type ? `${name} (${type[1]})` : null } this.$set(this.option, 'legend', legend) } diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview.vue b/nezha-fronted/src/components/page/dashboard/overview/overview.vue index 2275226f7..a73750f59 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/overview.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/overview.vue @@ -137,10 +137,10 @@