From 592ff0aa0f2d45d143872b672a1468e268d3157f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 22 二月 2020 17:25:20 +0800 Subject: [PATCH] 2020-02-22 --- src/tabviews/subtable/index.jsx | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx index 4286b1d..0d982b0 100644 --- a/src/tabviews/subtable/index.jsx +++ b/src/tabviews/subtable/index.jsx @@ -60,6 +60,7 @@ */ UNSAFE_componentWillReceiveProps(nextProps) { if (this.state.config && this.props.Tab.supMenu && !is(fromJS(this.props.BID), fromJS(nextProps.BID))) { + this.refs.subTable.resetTable() this.loadmaindata(nextProps.BID, 'refresh') } else if (this.state.config && nextProps.refreshtabs && nextProps.refreshtabs.includes(this.props.Tab.uuid)) { this.reloadtable() @@ -514,6 +515,11 @@ } else if (btn.popClose === 'equaltab' && type === 'pop') { this.reloadtable() this.props.handleMainTable('equaltab') + } else if (btn.execSuccess === 'maingrid' && type === 'success') { + this.props.handleMainTable('maingrid') + } else if (btn.execSuccess === 'equaltab' && type === 'success') { + this.reloadtable() + this.props.handleMainTable('equaltab') } } -- Gitblit v1.8.0