From 95c0e04b25100b881e106c5dcc9fd8be344dd6e5 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 8 May 2020 16:28:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Doverview=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E8=A1=8C=E6=95=B0=E5=AD=97=E6=9C=89k=E3=80=81m?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E6=97=B6=E5=87=BAbug=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/dashboard/overview/overview2.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue index 5df89fc68..47c5dc132 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue @@ -34,7 +34,7 @@
{{$t("dashboard.overview.asset.title")}}
- + {{(assetData ? assetData.totalStat.total : '') | unitFormat}}
@@ -43,7 +43,7 @@
{{$t("dashboard.overview.project.project")}}
- + {{(projectData ? projectData.projectStat.length : '') | unitFormat}}
@@ -52,7 +52,7 @@
{{$t("dashboard.overview.module.module")}}
- + {{(moduleData ? moduleData.moduleStat.length : '') | unitFormat}}
@@ -61,7 +61,7 @@
{{$t("dashboard.overview.endpoint.endpoint")}}
- + {{(endpointData ? endpointData.total : '') | unitFormat}}
@@ -69,7 +69,7 @@
{{$t("dashboard.overview.alert.alertMessage")}}
-
+
{{(alertMessageData ? alertMessageData.alertMessageTotal : '') | unitFormat}} {{$t("dashboard.overview.alert.ruleNum")}} : {{(alertRuleData ? alertRuleData.alertRuleTotal : "") | numberFormat}}
@@ -272,9 +272,9 @@ if (num < 1000) { return num; } else if (num < 1000000) { - return (num/1000).toFixed(fixed) + "K"; + return (num/1000).toFixed(fixed); } else if (num < 1000000000) { - return (num/1000000).toFixed(fixed) + "M"; + return (num/1000000).toFixed(fixed); } } catch (err) { return 0;