From 37a134bd23ec4b227a0e010b08a1a89c2bbaaa0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 03 十一月 2020 17:10:14 +0800
Subject: [PATCH] 2020-11-03

---
 src/tabviews/subtabtable/index.jsx |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx
index d6a86cf..7602306 100644
--- a/src/tabviews/subtabtable/index.jsx
+++ b/src/tabviews/subtabtable/index.jsx
@@ -349,6 +349,10 @@
     let _orderBy = orderBy || setting.order
     let param = UtilsDM.getQueryDataParams(setting, arr_field, searches, _orderBy, pageIndex, pageSize, BID, this.props.menuType, this.props.dataManager)
 
+    if (param.func === 'sPC_Get_TableData') {
+      param.menuname = this.props.Tab.label || ''
+    }
+
     let result = await Api.genericInterface(param)
     if (result.status) {
       this.setState({
@@ -393,6 +397,10 @@
     let _orderBy = orderBy || setting.order
     let param = UtilsDM.getStatQueryDataParams(setting, statFields, searches, _orderBy, BID, this.props.menuType, this.props.dataManager)
 
+    if (param.func === 'sPC_Get_TableData') {
+      param.menuname = this.props.Tab.label || ''
+    }
+    
     Api.genericInterface(param).then(res => {
       if (res.status) {
         let _data = res.data[0]
@@ -592,6 +600,7 @@
                       BData={this.props.BData}
                       selectedData={selectedData}
                       MenuID={this.props.SupMenuID}
+                      MenuName={this.props.Tab.label}
                       logcolumns={this.state.logcolumns}
                       refreshdata={this.refreshbyaction}
                       getexceloutparam={this.getexceloutparam}
@@ -610,6 +619,7 @@
                     total={this.state.total}
                     MenuID={this.props.MenuID}
                     loading={this.state.loading}
+                    MenuName={this.props.Tab.label}
                     refreshdata={this.refreshbytable}
                     logcolumns={this.state.logcolumns}
                     statFValue={this.state.statFValue}
@@ -627,9 +637,10 @@
                     plot={item}
                     config={config}
                     BID={this.props.BID}
-                    BData={this.props.BData}
                     data={this.state.data}
+                    BData={this.props.BData}
                     loading={this.state.loading}
+                    MenuName={this.props.Tab.label}
                     logcolumns={this.state.logcolumns}
                     refreshdata={this.refreshbyaction}
                     handleTableId={() => {}}
@@ -644,6 +655,7 @@
                     config={config}
                     data={this.state.data}
                     loading={this.state.loading}
+                    MenuName={this.props.Tab.label}
                   />
                 </Col>
               )

--
Gitblit v1.8.0