From 901dbc9d94b37df6ab264388e0d0f25f8ce0c78a Mon Sep 17 00:00:00 2001 From: zhouhaibin Date: Thu, 6 Jun 2024 10:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=95=B0=E7=82=B9=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectBoard/childBoard/bas_bar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/projectBoard/childBoard/bas_bar.vue b/src/views/projectBoard/childBoard/bas_bar.vue index 953a5b4..d8d090b 100644 --- a/src/views/projectBoard/childBoard/bas_bar.vue +++ b/src/views/projectBoard/childBoard/bas_bar.vue @@ -32,7 +32,7 @@ option = { max: 1, axisLabel: { formatter: function (value, index) { - return (value*100) + "%"; + return (value*100).toFixed(0) + "%"; } } }, @@ -48,7 +48,7 @@ option = { show: true, position: 'right', formatter: function (params) { - return (params.value*100) + "%"; + return (params.value*100).toFixed(0) + "%"; }