From da7068bd48791cdee966c786ce0dfd46f6e03df9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 08 一月 2021 19:02:24 +0800 Subject: [PATCH] 2021-01-08 --- src/tabviews/verupmanage/subtabtable/index.jsx | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/tabviews/verupmanage/subtabtable/index.jsx b/src/tabviews/verupmanage/subtabtable/index.jsx index 181a65c..c16e0d0 100644 --- a/src/tabviews/verupmanage/subtabtable/index.jsx +++ b/src/tabviews/verupmanage/subtabtable/index.jsx @@ -12,12 +12,13 @@ import { buttonConfig, tabConfig } from '../config' import MKEmitter from '@/utils/events.js' +import asyncComponent from '@/utils/asyncComponent' import asyncSpinComponent from '@/utils/asyncSpinComponent' import SubAction from '../actionList' -import SubSearch from '../topSearch' import './index.scss' +const MainSearch = asyncComponent(() => import('@/tabviews/zshare/topSearch')) const SubTable = asyncSpinComponent(() => import('@/tabviews/zshare/normalTable')) class VerupSubTabViewTable extends Component { @@ -180,6 +181,7 @@ this.setState({ data: result.data.map((item, index) => { item.key = index + item.$$BID = _BID || '' return item }), total: result.total, @@ -439,12 +441,8 @@ return ( <div className="verup-subtable" id={'subtable' + this.props.MenuID}> - {searchlist && searchlist.length > 0 ? - <SubSearch - dict={this.state.dict} - searchlist={searchlist} - refreshdata={this.refreshbysearch} - /> : null + {searchlist && searchlist.length ? + <MainSearch searchlist={searchlist} menuType="HS" refreshdata={this.refreshbysearch}/> : null } {actions ? <div className="sub-action"> -- Gitblit v1.8.0