From b3323de0d06e264a0a59691c02f8c3a404816994 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 2 Feb 2026 15:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E5=A4=87=E5=8F=B0=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EquAnalysis.vue | 47 ++++++++++--------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/src/views/EquipmentLedger/components/EquAnalysis.vue b/src/views/EquipmentLedger/components/EquAnalysis.vue index c90b47dd..3e7a3582 100644 --- a/src/views/EquipmentLedger/components/EquAnalysis.vue +++ b/src/views/EquipmentLedger/components/EquAnalysis.vue @@ -239,27 +239,32 @@ export default { ], graphic: [ { - type: 'text', - left: '27%', - top: '40%', - style: { - text: `${this.total}台`, - textAlign: 'center', - fill: '#3F3F3F', - fontSize: 22, - fontWeight: 'bold', - }, - }, - { - type: 'text', - left: '29%', - top: '53%', - style: { - text: '装备台账', - textAlign: 'center', - fill: '#3F3F3F', - fontSize: 14, - }, + type: 'group', + left: '35%', // 与饼图 center[0] 保持一致 + top: '42%', + bounding: 'raw', + children: [ + { + type: 'text', + style: { + text: `${this.total}台`, + fill: '#3F3F3F', + fontSize: 22, + fontWeight: 'bold', + textAlign: 'center', + }, + }, + { + type: 'text', + top: 32, + style: { + text: '装备台账', + fill: '#3F3F3F', + fontSize: 14, + textAlign: 'center', + }, + }, + ], }, ], color: ['#33C3C8', '#FF6B6B', '#FFA940', '#FADB14', '#597EF7'],