2022-05-24 19:00:33 +08:00
|
|
|
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,
|
|
|
|
|
loading,
|
|
|
|
|
indentSize
|
|
|
|
|
} = this.props
|
|
|
|
|
|
2022-05-26 13:55:26 +08:00
|
|
|
const pagination = {
|
|
|
|
|
total: dataSource.length,
|
|
|
|
|
showSizeChanger: true,
|
|
|
|
|
showQuickJumper: true,
|
|
|
|
|
onShowSizeChange(current, pageSize) {
|
|
|
|
|
},
|
|
|
|
|
onChange(current) {
|
|
|
|
|
},
|
|
|
|
|
showTotal(total){
|
|
|
|
|
return `共 ${total} 条`
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2022-05-24 19:00:33 +08:00
|
|
|
|
|
|
|
|
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}
|
2022-05-26 13:55:26 +08:00
|
|
|
pagination={pagination}
|
2022-05-24 19:00:33 +08:00
|
|
|
loading={loading}
|
|
|
|
|
indentSize={indentSize}
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|