From a00b7b609830736d18a749cbe3ffa6cbf0035cd9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 24 十二月 2019 18:03:38 +0800 Subject: [PATCH] 2019-12-24 --- src/tabviews/subtable/index.jsx | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx index d4cffb1..585ac35 100644 --- a/src/tabviews/subtable/index.jsx +++ b/src/tabviews/subtable/index.jsx @@ -16,7 +16,7 @@ export default class NormalTable extends Component { static propTpyes = { Tab: PropTypes.object, // 鏍囩淇℃伅 - BIDs: PropTypes.string, // 涓婄骇鏁版嵁ID + BID: PropTypes.string, // 涓婄骇鏁版嵁ID MenuID: PropTypes.string, // 鑿滃崟Id SupMenuID: PropTypes.string // 涓婄骇鑿滃崟Id } @@ -44,7 +44,7 @@ } UNSAFE_componentWillReceiveProps(nextProps) { - if (this.props.Tab.supMenu && !is(fromJS(this.props.BIDs[this.props.Tab.supMenu]), fromJS(nextProps.BIDs[this.props.Tab.supMenu]))) { + if (this.props.Tab.supMenu && !is(fromJS(this.props.BID), fromJS(nextProps.BID))) { this.loadmaindata() } } @@ -305,7 +305,7 @@ func: 'sPC_Get_TableData', obj_name: 'data', arr_field: arr_field, - BID: this.props.BIDs[this.props.Tab.supMenu] || '' + BID: this.props.BID } let orderBy = orderColumn ? (orderColumn + ' ' + orderType) : setting.order @@ -490,7 +490,7 @@ <SubAction ref="subButton" MenuID={this.props.MenuID} - BID={this.props.BIDs[this.props.Tab.supMenu] || ''} + BID={this.props.BID} setting={setting} refreshdata={this.refreshbyaction} gettableselected={this.gettableselected} -- Gitblit v1.8.0