From 84804b405cb88f659d055b16eb3bd00b813ccb4a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 10 十二月 2020 10:58:38 +0800
Subject: [PATCH] 2020-12-10

---
 src/tabviews/custom/components/share/tabtransfer/index.jsx |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/share/tabtransfer/index.jsx b/src/tabviews/custom/components/share/tabtransfer/index.jsx
index 3d5ce41..5f195b9 100644
--- a/src/tabviews/custom/components/share/tabtransfer/index.jsx
+++ b/src/tabviews/custom/components/share/tabtransfer/index.jsx
@@ -23,7 +23,7 @@
 
 class TabTransfer extends Component {
   static propTpyes = {
-    BID: PropTypes.any,              // 鐖剁骇Id
+    bids: PropTypes.any,             // 鐖剁骇Id闆�
     config: PropTypes.object,        // 缁勪欢閰嶇疆淇℃伅
     mainSearch: PropTypes.any,       // 鍏ㄥ眬鎼滅储鏉′欢
     menuType: PropTypes.any,         // 鑿滃崟绫诲瀷
@@ -233,12 +233,17 @@
   }
 
   getComponents = () => {
-    const { menuType, BID, config } = this.props
+    const { menuType, bids, config } = this.props
     const { mainSearch, data } = this.state
 
     if (!config || !config.components || config.components.length === 0) return (<Empty description={false} />)
 
     return config.components.map(item => {
+      let BID = ''
+      if (item.setting && item.setting.supModule) {
+        BID = bids[item.setting.supModule] || ''
+      }
+
       if (item.type === 'bar' || item.type === 'line') {
         return (
           <Col span={item.width} key={item.uuid}>
@@ -260,7 +265,7 @@
       } else if (item.type === 'tabs') {
         return (
           <Col span={item.width} key={item.uuid}>
-            <AntvTabs config={item} BID={BID} mainSearch={mainSearch} menuType={menuType} />
+            <AntvTabs config={item} bids={bids} mainSearch={mainSearch} menuType={menuType} />
           </Col>
         )
       } else if (item.type === 'card' && item.subtype === 'datacard') {

--
Gitblit v1.8.0