From f6626b05f1275cc2f8ca77f773d4f6a6af1b0a89 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 21 十一月 2022 16:11:55 +0800
Subject: [PATCH] 2022-11-21

---
 src/tabviews/zshare/cardcomponent/index.jsx |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/tabviews/zshare/cardcomponent/index.jsx b/src/tabviews/zshare/cardcomponent/index.jsx
index 5fd8517..3bcfd1a 100644
--- a/src/tabviews/zshare/cardcomponent/index.jsx
+++ b/src/tabviews/zshare/cardcomponent/index.jsx
@@ -146,7 +146,7 @@
    * @description 鑾峰彇鎸夐挳鍏冪礌
    */
   getActionList = (actions) => {
-    const { BData, setting, columns, ContainerId, data, MenuID } = this.props
+    const { BData, setting, columns, data, MenuID } = this.props
     
     return actions.map(item => {
       if (['exec', 'prompt', 'pop'].includes(item.OpenType)) {
@@ -159,7 +159,6 @@
             setting={setting}
             columns={columns}
             selectedData={[data]}
-            ContainerId={ContainerId}
           />
         )
       } else if (item.OpenType === 'popview') {
@@ -210,7 +209,6 @@
               BData={BData}
               setting={setting}
               selectedData={[data]}
-              ContainerId={ContainerId}
             />
           )
         }
@@ -497,7 +495,6 @@
               setting={this.props.setting}
               columns={this.props.columns}
               selectedData={[]}
-              ContainerId={this.props.ContainerId}
             />
           </div>
         </Card> : null}
@@ -513,7 +510,6 @@
     MenuID: PropTypes.string,         // 鑿滃崟ID
     config: PropTypes.object,         // 椤甸潰閰嶇疆淇℃伅
     columns: PropTypes.array,         // 鏄剧ず鍒�
-    ContainerId: PropTypes.any,       // tab椤甸潰ID锛岀敤浜庡脊绐楁帶鍒�
     plot: PropTypes.object,
     tableId: PropTypes.string,
     loading: PropTypes.bool,
@@ -745,11 +741,11 @@
 
     this.setState({selectKey: data.key})
 
-    MKEmitter.emit('changeTableLine', this.props.ContainerId, this.props.tableId, _id, data)
+    MKEmitter.emit('changeTableLine', config.setting.ContainerId, this.props.tableId, _id, data)
   }
 
   render() {
-    const { plot, data, loading, BID, BData, MenuID, config, columns, ContainerId } = this.props
+    const { plot, data, loading, BID, BData, MenuID, config, columns } = this.props
     const { card, colMap, selectKey, actionList } = this.state
     
     return (
@@ -800,7 +796,6 @@
               columns={columns}
               selectKey={selectKey}
               setting={config.setting}
-              ContainerId={ContainerId}
               switchCard={this.switchCard}
             />
           ))
@@ -815,7 +810,6 @@
             BData={BData}
             MenuID={MenuID}
             setting={config.setting}
-            ContainerId={ContainerId}
             switchCard={() => {}}
           /> : null
         }

--
Gitblit v1.8.0