From 862bf73668564f06f06764ef756adc2c4701123d Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 9 Feb 2026 10:35:07 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E9=A6=96=E9=A1=B5-=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=88=86=E7=B1=BB=E7=BB=9F=E8=AE=A1=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?label=E5=B1=9E=E6=80=A7=E6=B7=BB=E5=8A=A0value=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/Index.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 2f9e230f..5180b173 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -424,13 +424,14 @@ const deviceRepairLineOptions = ref({ } ] }) -const deviceCategoryPieOptionsData = ref( - {title: { +const deviceCategoryPieOptionsData = ref({ + title: { text: '设备分类统计', left: 'center' }, tooltip: { - trigger: 'item' + trigger: 'item', + formatter: '{b}:{c}' }, legend: { orient: 'vertical', @@ -442,10 +443,13 @@ const deviceCategoryPieOptionsData = ref( type: 'pie', radius: '55%', center: ['50%', '60%'], + label: { + show: true, + formatter: '{b}:{c}' + } } ] - } -) +}) const moldTypeBarOptionsData = ref({ title: {