salary-management-front/pc4mobx/hrmSalary/components/importModal/modalStep2.js

25 lines
962 B
JavaScript
Raw Normal View History

2022-03-07 19:33:56 +08:00
import React from 'react'
import { Table, Button } from 'antd'
2022-04-27 11:14:20 +08:00
import { WeaTable } from "ecCom"
2022-03-07 19:33:56 +08:00
export default class ModalStep2 extends React.Component {
2022-03-10 16:28:49 +08:00
componentWillMount() {
this.props.onPreviewDate();
}
2022-03-07 19:33:56 +08:00
render() {
2022-03-10 16:28:49 +08:00
const {dataSource, columns} = this.props;
2022-03-07 19:33:56 +08:00
return (
<div style={{height: "550px", display: "flex", flexFlow: "column"}}>
<div style={{flex: "1"}}>
2022-04-27 11:14:20 +08:00
<WeaTable dataSource={dataSource} columns={columns} />
2022-03-07 19:33:56 +08:00
</div>
<div className="footerBtnWrapper" style={{marginTop: "10px", overflow: "hidden", height: "30px"}}>
<Button type="primary" style={{float: "right", marginLeft: "10px"}} onClick={this.props.onStep2Next}>下一步</Button>
<Button type="default" style={{float: "right"}} onClick={this.props.onStep2Pre}>上一步</Button>
</div>
</div>
)
}
}