From cefa2eb8cfcce119abbd1449051e7b6d31239313 Mon Sep 17 00:00:00 2001 From: hzz Date: Thu, 18 Apr 2024 19:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 2 ++ src/views/quality/index.vue | 18 +++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index f88b727..51783ed 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -173,6 +173,7 @@ let bar_option = ref({ itemStyle: { color: '#91cc75' }, + barWidth:'30%', data: [0] }, { @@ -186,6 +187,7 @@ let bar_option = ref({ itemStyle: { color: '#c81623' }, + barWidth:'30%', data: [0], label: { show: true, diff --git a/src/views/quality/index.vue b/src/views/quality/index.vue index 78856bd..8c549fc 100644 --- a/src/views/quality/index.vue +++ b/src/views/quality/index.vue @@ -51,12 +51,12 @@ + :formatter="(val) => { return (totalQuality == 0 ? '0' : (((val / totalQuality) * 100).toFixed(1) || 0)) + '%' }" /> + :formatter="(val) => { return (totalQuality == 0 ? '0' : (((val / totalQuality) * 100).toFixed(1) || 0)) + '%' }" /> @@ -94,11 +94,15 @@