61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
import {
|
|
WeaNewScroll,
|
|
WeaSearchGroup,
|
|
WeaMoreButton,
|
|
WeaTable
|
|
} from 'ecCom'
|
|
|
|
import {
|
|
Spin,
|
|
Button,
|
|
Pagination
|
|
} from 'antd'
|
|
|
|
import {
|
|
WeaSwitch
|
|
} from 'comsMobx'
|
|
|
|
import {
|
|
i18n
|
|
} from '../public/i18n';
|
|
|
|
import '../style/common.less';
|
|
|
|
|
|
export default class NewWeaTable extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
const {
|
|
dataSource,
|
|
columns,
|
|
rowSelection,
|
|
pagination,
|
|
loading,
|
|
indentSize
|
|
} = this.props
|
|
|
|
|
|
return (
|
|
loading ? <div className='hrm-new-weatable-spin'>
|
|
<Spin ecId={`${this && this.props && this.props.ecId || ''}_Spin@4ygl4a`} spinning={loading}></Spin>
|
|
</div> :
|
|
<WeaTable rowKey={record => record.id}
|
|
dataSource={dataSource} childrenColumnName="children"
|
|
columns={columns}
|
|
rowSelection={rowSelection}
|
|
pagination={false}
|
|
loading={loading}
|
|
// onChange={(pagination, filters, sorter) => {
|
|
// debugger
|
|
// company.getTableInfo();
|
|
// }}
|
|
indentSize={indentSize}
|
|
/>
|
|
)
|
|
}
|
|
} |