From 90dbe2a496998e15674be98d91de93a24c265773 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Wed, 24 Sep 2025 10:02:55 +0800 Subject: [PATCH] =?UTF-8?q?custom/=E9=A2=86=E6=82=A6=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-pages/lingyue/adjustSalaryFile/content.js | 9 ++++++--- .../pages/custom-pages/lingyue/salaryFile/content.js | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/adjustSalaryFile/content.js b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/adjustSalaryFile/content.js index 22d731af..77cc3cfb 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/adjustSalaryFile/content.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/adjustSalaryFile/content.js @@ -94,13 +94,16 @@ class Content extends Component { name: pieName, data: data, type: "pie", - radius: "60%", + radius: "58%", avoidLabelOverlap: true, animation: false, + label: { + formatter: "{b}\n{d}%" + }, labelLine: { show: true, normal: { - length: 5, + length: 3, align: "center" } }, @@ -118,7 +121,7 @@ class Content extends Component { render() { const { columns, dataSource, chartsDataA, chartsDataB, loading, showLeft } = this.state; - return ( this.setState({ showLeft: v })} leftCom={
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/salaryFile/content.js b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/salaryFile/content.js index 5f1258d5..96e4bc17 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/salaryFile/content.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/salaryFile/content.js @@ -87,13 +87,16 @@ class Content extends Component { name: pieName, data: data, type: "pie", - radius: "60%", + radius: "58%", avoidLabelOverlap: true, animation: false, + label: { + formatter: "{b}\n{d}%" + }, labelLine: { show: true, normal: { - length: 5, + length: 3, align: "center" } },