From 145c4b6ec2ea4f1dd7986b3179ca505a79bc0598 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 18 八月 2020 17:47:44 +0800 Subject: [PATCH] 2020-08-18 --- src/tabviews/treepage/index.jsx | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tabviews/treepage/index.jsx b/src/tabviews/treepage/index.jsx index 952f1cd..26e2454 100644 --- a/src/tabviews/treepage/index.jsx +++ b/src/tabviews/treepage/index.jsx @@ -27,6 +27,7 @@ class TreePage extends Component { static propTpyes = { + param: PropTypes.string, // 鍏朵粬椤甸潰浼犻�掔殑鍙傛暟 MenuID: PropTypes.string, // 鑿滃崟Id MenuNo: PropTypes.string, // 鑿滃崟鍙傛暟 MenuName: PropTypes.string // 鑿滃崟鍚嶇О @@ -36,6 +37,7 @@ dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, ContainerId: Utils.getuuid(), // 鑿滃崟澶栧眰html Id loadingview: true, // 椤甸潰鍔犺浇涓� + BID: null, // 椤甸潰璺宠浆鏃舵惡甯D viewlost: false, // 椤甸潰涓㈠け锛�1銆佹湭鑾峰彇鍒伴厤缃�-椤甸潰涓㈠け锛�2銆侀〉闈㈡湭鍚敤 lostmsg: '', // 椤甸潰涓㈠け鏃剁殑鎻愮ず淇℃伅 config: {}, // 椤甸潰閰嶇疆淇℃伅锛屽寘鎷寜閽�佹悳绱€�佹樉绀哄垪銆佹爣绛剧瓑 @@ -62,7 +64,7 @@ * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅 */ async loadconfig () { - const { permAction } = this.props + const { permAction, param } = this.props let _param = { func: 'sPC_Get_LongParam', @@ -140,6 +142,7 @@ }) this.setState({ + BID: param && param.BID ? param.BID : '', loadingview: false, config: config, tabActive: _tabActive, @@ -243,7 +246,7 @@ * @description 涓昏〃鏁版嵁鍔犺浇 */ async loadmaindata () { - const { setting, searchKey } = this.state + const { setting, searchKey, BID } = this.state let param = '' this.setState({ @@ -256,6 +259,10 @@ param = this.getDefaultParam() } + if (BID) { + param.BID = BID + } + // 鏁版嵁绠$悊鏉冮檺 if (this.props.dataManager) { param.dataM = 'Y' -- Gitblit v1.8.0