From 053bf171a96b85e754ba9f41fb5745a69d23faad Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 19 一月 2020 23:17:19 +0800
Subject: [PATCH] 2020-01-19

---
 src/tabviews/subtable/index.jsx    |    2 +-
 src/tabviews/subtabtable/index.jsx |   11 ++++++++---
 src/tabviews/commontable/index.jsx |    2 +-
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/commontable/index.jsx b/src/tabviews/commontable/index.jsx
index 699a2b3..4aa7255 100644
--- a/src/tabviews/commontable/index.jsx
+++ b/src/tabviews/commontable/index.jsx
@@ -835,7 +835,7 @@
           ]}
           destroyOnClose
         >
-          {<SubTabTable SupMenuID={this.props.MenuID} MenuID={this.state.popAction.linkTab} BID={''} ID={this.state.popData ? this.state.popData[setting.primaryKey] : ''} />}
+          {<SubTabTable SupMenuID={this.props.MenuID} MenuID={this.state.popAction.linkTab} BID={''} ID={this.state.popData ? this.state.popData[setting.primaryKey] : ''} refreshSupView={this.reloadtable} />}
         </Modal>
         <BackTop>
           <div className="ant-back-top">
diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx
index 0868e5a..15f61d1 100644
--- a/src/tabviews/subtable/index.jsx
+++ b/src/tabviews/subtable/index.jsx
@@ -669,7 +669,7 @@
           ]}
           destroyOnClose
         >
-          {<SubTabTable SupMenuID={this.props.MenuID} MenuID={this.state.popAction.linkTab} BID={''} ID={this.state.popData ? this.state.popData[setting.primaryKey] : ''} />}
+          {<SubTabTable SupMenuID={this.props.MenuID} MenuID={this.state.popAction.linkTab} BID={this.props.BID} ID={this.state.popData ? this.state.popData[setting.primaryKey] : ''} refreshSupView={this.reloadtable} />}
         </Modal>
         {viewlost ? <NotFount msg={this.state.lostmsg} /> : null}
       </div>
diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx
index 9f0f795..7a3ac06 100644
--- a/src/tabviews/subtabtable/index.jsx
+++ b/src/tabviews/subtabtable/index.jsx
@@ -16,9 +16,11 @@
 
 class SubTabModalTable extends Component {
   static propTpyes = {
-    BID: PropTypes.string,         // 涓婄骇鏁版嵁ID
-    MenuID: PropTypes.string,      // 鑿滃崟Id
-    SupMenuID: PropTypes.string   // 涓婄骇鑿滃崟Id
+    ID: PropTypes.string,            // 涓婄骇鏁版嵁ID
+    BID: PropTypes.string,           // 涓婁笂绾ф暟鎹甀D
+    MenuID: PropTypes.string,        // 鑿滃崟Id
+    SupMenuID: PropTypes.string,     // 涓婄骇鑿滃崟Id
+    refreshSupView: PropTypes.any    // 鍒锋柊涓婄骇鑿滃崟
   }
 
   state = {
@@ -455,6 +457,9 @@
     } else if (type === 'excelOut') {
       this.handleDefaultExcelout(btn)
     }
+    if (type === 'success') {
+      this.props.refreshSupView()
+    }
   }
 
   /**

--
Gitblit v1.8.0