From 71fce3cc19f80a6e0eba36cfc5e67995ee9712ff Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 23 七月 2020 09:23:59 +0800
Subject: [PATCH] 2020-07-23

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

diff --git a/src/templates/sharecomponent/chartgroupcomponent/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/index.jsx
index 8650363..82b4a90 100644
--- a/src/templates/sharecomponent/chartgroupcomponent/index.jsx
+++ b/src/templates/sharecomponent/chartgroupcomponent/index.jsx
@@ -138,10 +138,17 @@
       item.actions = item.actions.filter(cell => keys.includes(cell))
     }
 
+    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) {
+      item.extraAction = ''
+    }
+
     this.setState({
       card: item,
       modaltype: _type,
-      formlist: getChartViewForm(item, this.props.sysRoles, _columns, actions)
+      formlist: getChartViewForm(item, this.props.sysRoles, _columns, actions, extraActions)
     })
   }
 

--
Gitblit v1.8.0