From 0bff15b120b3e3ff1f1c3d2ce4d9aa8d3ad3917e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 06 十一月 2020 13:49:44 +0800
Subject: [PATCH] 2020-11-06

---
 src/menu/components/chart/antv-bar/chartcompile/index.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/index.jsx b/src/menu/components/chart/antv-bar/chartcompile/index.jsx
index e7295d0..813701b 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/index.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/index.jsx
@@ -14,6 +14,7 @@
   static propTpyes = {
     dict: PropTypes.object,
     plot: PropTypes.object,
+    sysRoles: PropTypes.array,
     config: PropTypes.object,
     plotchange: PropTypes.func
   }
@@ -66,7 +67,7 @@
   }
 
   showDrawer = () => {
-    const { config } = this.props
+    const { config, sysRoles } = this.props
 
     let fieldName = {}
     config.columns.forEach(col => {
@@ -81,7 +82,7 @@
       disabled: config.plot.datatype === 'statistics',
       fieldName: fieldName,
       plot: fromJS(config.plot).toJS(),
-      formlist: getBarOrLineChartOptionForm(config.plot, config.columns, config.setting)
+      formlist: getBarOrLineChartOptionForm(config.plot, config.columns, sysRoles)
     })
   }
 

--
Gitblit v1.8.0