From b97bad8a8db410963b687277931ce87cc5cdb65c Mon Sep 17 00:00:00 2001 From: xuyiming Date: Tue, 14 Jul 2020 11:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E8=B5=84=E6=BA=90=E7=AE=A1=E7=90=86fi?= =?UTF-8?q?xed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwgl/fwglList.vue | 9 ++++++--- src/pages/workbench/fwgl/organizationCloudResource.vue | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pages/workbench/fwgl/fwglList.vue b/src/pages/workbench/fwgl/fwglList.vue index ba9535c..fcc78be 100644 --- a/src/pages/workbench/fwgl/fwglList.vue +++ b/src/pages/workbench/fwgl/fwglList.vue @@ -40,7 +40,7 @@

剩余量 - +

@@ -67,7 +67,7 @@

剩余量 - +

@@ -1515,7 +1515,9 @@ export default { this.init(this.tempFliter); }, // 云资源分配成功 getDashboardOption(item) { - let percent = Math.round((item.value / item.total) * 100) || 0; + let percent = parseFloat( + ((item.value / item.total) * 100 || 0).toFixed(1) + ); let colors = []; if (this.level == 2) { @@ -1791,6 +1793,7 @@ export default { } .dashboard_info > span:nth-of-type(2) { color: #0d1847; + margin-left: 10px; } .admin_preview { display: flex; diff --git a/src/pages/workbench/fwgl/organizationCloudResource.vue b/src/pages/workbench/fwgl/organizationCloudResource.vue index 08f62cd..c03874c 100644 --- a/src/pages/workbench/fwgl/organizationCloudResource.vue +++ b/src/pages/workbench/fwgl/organizationCloudResource.vue @@ -42,7 +42,7 @@

剩余量 - +

@@ -162,7 +162,9 @@ export default { }); }, getDashboardOption(item) { - let percent = Math.round((item.value / item.total) * 100) || 0; + let percent = parseFloat( + ((item.value / item.total) * 100 || 0).toFixed(1) + ); let colors = ["#515fe7", "#e7ecfd"]; if (percent >= 80) { -- 2.26.0