From cf804e19634ff953bb132af1b2f46905d80c1e3a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 12 五月 2021 15:08:34 +0800 Subject: [PATCH] 2021-05-12 --- src/tabviews/custom/components/table/normal-table/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/table/normal-table/index.jsx b/src/tabviews/custom/components/table/normal-table/index.jsx index d22195b..c147e6f 100644 --- a/src/tabviews/custom/components/table/normal-table/index.jsx +++ b/src/tabviews/custom/components/table/normal-table/index.jsx @@ -517,7 +517,7 @@ this.setState({sync: false, data: _data}) } else if (nextProps.mainSearch && !is(fromJS(this.props.mainSearch), fromJS(nextProps.mainSearch))) { if (config.setting.syncRefresh === 'true') { - this.setState({}, () => { + this.setState({pageIndex: 1}, () => { this.reloadtable() }) } @@ -555,7 +555,7 @@ <div className="custom-normal-table" style={config.style}> <NormalHeader config={config}/> {searchlist && searchlist.length ? - <MainSearch BID={BID} searchlist={searchlist} menuType={this.props.menuType} refreshdata={this.refreshbysearch}/> : null + <MainSearch BID={BID} setting={config.wrap} searchlist={searchlist} menuType={this.props.menuType} refreshdata={this.refreshbysearch}/> : null } <MainAction BID={BID} -- Gitblit v1.8.0