From 75623dd039b742dbb44fb4c6b4af563404ed9c7f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 03 二月 2020 16:06:04 +0800 Subject: [PATCH] 2020-02-03 --- src/tabviews/subtable/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx index 15f61d1..85b41b9 100644 --- a/src/tabviews/subtable/index.jsx +++ b/src/tabviews/subtable/index.jsx @@ -21,6 +21,7 @@ static propTpyes = { Tab: PropTypes.object, // 鏍囩淇℃伅 BID: PropTypes.string, // 涓婄骇鏁版嵁ID + BData: PropTypes.any, // 涓婄骇鏁版嵁 MenuID: PropTypes.string, // 鑿滃崟Id SupMenuID: PropTypes.string, // 涓婄骇鑿滃崟Id handleTableId: PropTypes.func, // 鎺у埗琛ㄦ牸鏁版嵁鍒囨崲鏃讹紝鏇存柊鍦ㄤ富琛ㄤ腑鐨刬d @@ -202,6 +203,7 @@ if (item.resourceType === '1' && item.dataSource) { let _option = Utils.getSelectQueryOptions(item) let _sql = Utils.formatOptions(_option.sql) + let isSSO = item.database === 'sso' let param = { func: 'sPC_Get_SelectedList', @@ -214,7 +216,7 @@ param.secretkey = Utils.encrypt(param.LText, param.timestamp) let defer = new Promise(resolve => { - Api.getSystemCacheConfig(param).then(res => { + Api.getSystemCacheConfig(param, isSSO).then(res => { res.search = item resolve(res) }) @@ -285,7 +287,7 @@ param = this.getDefaultParam(_BID) } - this.handleTableId('') + this.handleTableId() let result = await Api.genericInterface(param) if (result.status) { @@ -574,8 +576,8 @@ /** * @description 琛ㄦ牸Id鍙樺寲 */ - handleTableId = (id = '') => { - this.props.handleTableId(this.props.Tab.uuid, id) + handleTableId = (id = '', data = '') => { + this.props.handleTableId(this.props.Tab.uuid, id, data) } /** @@ -635,6 +637,7 @@ actions={actions} Tab={this.props.Tab} BID={this.props.BID} + BData={this.props.BData} dict={this.state.dict} MenuID={this.props.SupMenuID} refreshdata={this.refreshbyaction} -- Gitblit v1.8.0