| | |
| | | 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 { |
| | |
| | | this.setState({ |
| | | data: result.data.map((item, index) => { |
| | | item.key = index |
| | | item.$$BID = _BID || '' |
| | | return item |
| | | }), |
| | | total: result.total, |
| | |
| | | |
| | | 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"> |