From 42fae277ae5ebe794fc070bf38482a919eb661fc Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 25 十一月 2020 14:36:02 +0800 Subject: [PATCH] 2020-11-25 --- src/templates/sharecomponent/chartgroupcomponent/index.jsx | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/templates/sharecomponent/chartgroupcomponent/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/index.jsx index 647e706..8596cd8 100644 --- a/src/templates/sharecomponent/chartgroupcomponent/index.jsx +++ b/src/templates/sharecomponent/chartgroupcomponent/index.jsx @@ -17,7 +17,6 @@ class ChartGroupComponent extends Component { static propTpyes = { config: PropTypes.object, // 鑿滃崟閰嶇疆淇℃伅 - sysRoles: PropTypes.array, // 瑙掕壊鍒楄〃锛岄粦鍚嶅崟浣跨敤 updatechartgroup: PropTypes.func // 鍥捐〃鏇存柊 } @@ -90,7 +89,7 @@ icon: 'line-chart', Hide: 'false', blacklist: [], - correction: 7 + barSize: 35 } } @@ -141,14 +140,14 @@ let extraActions = config.action.filter(item => ['pop', 'prompt', 'exec'].includes(item.OpenType) && item.Ot === 'notRequired') extraActions = extraActions.map(cell => ({value: cell.uuid, text: cell.label})) - if (item.extraAction && extraActions.filter(cell => cell.uuid === item.extraAction).length === 0) { + if (item.extraAction && extraActions.filter(cell => cell.value === item.extraAction).length === 0) { item.extraAction = '' } this.setState({ card: item, modaltype: _type, - formlist: getChartViewForm(item, this.props.sysRoles, _columns, actions, extraActions) + formlist: getChartViewForm(item, _columns, actions, extraActions) }) } -- Gitblit v1.8.0