From 89e7167a83e0d8409ca87698e4c08651a37cc26e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 12 六月 2020 18:19:35 +0800
Subject: [PATCH] 2020-06-12

---
 src/tabviews/scriptmanage/actionList/index.jsx |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/tabviews/scriptmanage/actionList/index.jsx b/src/tabviews/scriptmanage/actionList/index.jsx
index c91c5e1..26df1ce 100644
--- a/src/tabviews/scriptmanage/actionList/index.jsx
+++ b/src/tabviews/scriptmanage/actionList/index.jsx
@@ -15,7 +15,6 @@
     BID: PropTypes.string,            // 涓昏〃ID
     BData: PropTypes.any,             // 涓昏〃鏁版嵁
     Tab: PropTypes.any,               // 濡傛灉褰撳墠鍏冪礌涓烘爣绛炬椂锛宼ab涓烘爣绛句俊鎭�
-    type: PropTypes.string,           // 鍒ゆ柇褰撳墠涓轰富琛紙main锛夈�佸瓙琛紙sub锛夈�佸瓙琛ㄦ爣绛撅紙subtab锛�
     MenuID: PropTypes.string,         // 鑿滃崟ID
     actions: PropTypes.array,         // 鎸夐挳缁�
     logcolumns: PropTypes.array,      // 鏄剧ず鍒�
@@ -23,7 +22,7 @@
     setting: PropTypes.any,           // 椤甸潰閫氱敤璁剧疆
     ContainerId: PropTypes.any,       // tab椤甸潰ID锛岀敤浜庡脊绐楁帶鍒�
     refreshdata: PropTypes.func,      // 鎵ц瀹屾垚鍚庢暟鎹埛鏂�
-    gettableselected: PropTypes.func  // 鑾峰彇琛ㄦ牸涓暟鎹�
+    selectedData: PropTypes.array     // 琛ㄦ牸閫変腑鏁版嵁
   }
 
   state = {
@@ -43,10 +42,10 @@
    * @description 瑙﹀彂鎸夐挳鎿嶄綔
    */
   actionTrigger = (item, record) => {
-    const { setting } = this.props
+    const { setting, selectedData } = this.props
 
     let _this = this
-    let data = this.props.gettableselected() || []
+    let data = selectedData || []
     
     if (record) { // 琛ㄦ牸涓Е鍙戞寜閽�
       data = [record]
@@ -267,10 +266,6 @@
       if (execAction.setting.clickouter === 'close') {
         clickouter = true
       }
-    }
-
-    if (this.props.type === 'subtab') {
-      container = document.body
     }
 
     return (

--
Gitblit v1.8.0