From 9a82bce9cf0ed4a51c1b0b0669eaa38cedbace07 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 七月 2020 16:35:58 +0800
Subject: [PATCH] 2020-07-16

---
 src/templates/sharecomponent/chartgroupcomponent/index.jsx |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/chartgroupcomponent/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/index.jsx
index b1aa66f..8650363 100644
--- a/src/templates/sharecomponent/chartgroupcomponent/index.jsx
+++ b/src/templates/sharecomponent/chartgroupcomponent/index.jsx
@@ -130,10 +130,18 @@
       }
     }
 
+    let actions = config.action.filter(item => item.OpenType === 'excelOut' || (item.OpenType === 'excelIn' && item.Ot === 'notRequired'))
+    actions = actions.map(cell => ({value: cell.uuid, text: cell.label}))
+
+    if (item.actions && item.actions.length > 0) {
+      let keys = actions.map(cell => cell.value)
+      item.actions = item.actions.filter(cell => keys.includes(cell))
+    }
+
     this.setState({
       card: item,
       modaltype: _type,
-      formlist: getChartViewForm(item, this.props.sysRoles, _columns)
+      formlist: getChartViewForm(item, this.props.sysRoles, _columns, actions)
     })
   }
 

--
Gitblit v1.8.0