From b97bad8a8db410963b687277931ce87cc5cdb65c Mon Sep 17 00:00:00 2001
From: xuyiming
剩余量 - +
@@ -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