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/formconfig.jsx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index 98682dc..4bc2436 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -8,8 +8,9 @@
  * @param {object} card       // 鍥捐〃瀵硅薄
  * @param {Array}  columns    // 鏄剧ず鍒�
  */
-export function getBarOrLineChartOptionForm (card, columns) {
+export function getBarOrLineChartOptionForm (card, columns, sysRoles = []) {
   let shapes = []
+  let _sysRoles = sysRoles.map(item => ({...item, field: item.value, label: item.text}))
 
   if (card.chartType === 'line') {
     shapes = [
@@ -301,6 +302,14 @@
         value: 'white',
         text: '鐧借壊'
       }]
+    }, {
+      type: 'select',
+      key: 'blacklist',
+      label: '榛戝悕鍗�',
+      initVal: card.blacklist || [],
+      multi: true,
+      required: false,
+      options: _sysRoles
     }
   ]
 }

--
Gitblit v1.8.0