From a4e072e3eee34eb1234997aeaddd87968b5e8a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 21 Jun 2024 10:05:47 +0800 Subject: [PATCH] hotfix/2.14.2.2406.02 --- .../pages/reportView/components/condition.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/reportView/components/condition.js b/pc4mobx/hrmSalary/pages/reportView/components/condition.js index 23980906..d6668459 100644 --- a/pc4mobx/hrmSalary/pages/reportView/components/condition.js +++ b/pc4mobx/hrmSalary/pages/reportView/components/condition.js @@ -403,8 +403,8 @@ export const mapBarOptions = (params) => ({ }, grid: { top: "10%", - right: "0%", - left: "5%", + right: "2%", + left: "2%", bottom: "10%", containLabel: true }, @@ -457,8 +457,9 @@ export const mapBarOptions = (params) => ({ series: _.map(params.data, (item, index) => { return { name: item.name, - barWidth: "32", - barGap: "0%", + barMaxWidth: 30, + barMinWidth: 10, + barGap: 0, data: _.map(item.data, (it) => it.replace(/,/g, "")), type: "bar", itemStyle: { @@ -505,8 +506,9 @@ export const mapBarOptions = (params) => ({ }), dataZoom: [ { - type: "inside" - + type: "inside", + start: params.xAxis.length <= 7 ? 0 : 25, + end: params.xAxis.length <= 7 ? 100 : 75, }, { type: "slider",