From f830c733cbc071f023c9a9a4e1571b7c81d672bf Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 12 十一月 2020 11:47:33 +0800 Subject: [PATCH] 2020-11-12 --- src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx index 4bc2436..4b3fe02 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx @@ -8,7 +8,7 @@ * @param {object} card // 鍥捐〃瀵硅薄 * @param {Array} columns // 鏄剧ず鍒� */ -export function getBarOrLineChartOptionForm (card, columns, sysRoles = []) { +export function getBarOrLineChartOptionForm (card, columns, sysRoles = [], MenuType) { let shapes = [] let _sysRoles = sysRoles.map(item => ({...item, field: item.value, label: item.text})) @@ -279,13 +279,13 @@ required: true }, { type: 'number', - key: 'correction', - label: '鏁版嵁淇', - tooltip: '褰撴暟鎹」灏戜簬璁剧疆鍊兼椂锛岀郴缁熶細鑷姩淇锛堥伩鍏嶆煴褰㈠浘杩囧锛�,鍦ㄨ嚜瀹氫箟涓紝璁剧疆涓烘姌绾垮浘鏃跺け鏁堛��', + key: 'barSize', + label: '鏌卞舰瀹藉害', + tooltip: '绌哄�兼椂锛屽搴﹁嚜閫傚簲銆�', min: 5, - max: 30, + max: 100, decimal: 0, - initVal: card.correction, + initVal: card.barSize, forbid: !['bar'].includes(card.chartType), required: false }, { @@ -309,6 +309,7 @@ initVal: card.blacklist || [], multi: true, required: false, + forbid: MenuType === 'billPrint', options: _sysRoles } ] -- Gitblit v1.8.0