diff --git a/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js b/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js new file mode 100644 index 00000000..a6ad154e --- /dev/null +++ b/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js @@ -0,0 +1,38 @@ +import React from 'react' +import { Modal, Row, Col } from "antd" +import { WeaDatePicker, WeaSelect } from "ecCom" + +export default class EditAgentModal extends React.Component { + render() { + return ( + +
+ + 生效日期 + + + + + + 调整原因 + + + + + + 调整前 + + 义务人一 + + + + 调整后 + + + + +
+
+ ) + } +} \ No newline at end of file diff --git a/pc4mobx/hrmSalary/pages/salaryFile/index.js b/pc4mobx/hrmSalary/pages/salaryFile/index.js index 173aef63..4057d694 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/index.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/index.js @@ -13,6 +13,7 @@ import ContentWrapper from '../../components/contentWrapper'; import { columns, dataSource } from './columns'; import ChangeSalaryModal from "./changeSalaryModal" +import EditAgentModal from './editAgentModal'; const { MonthPicker } = DatePicker; @@ -24,7 +25,8 @@ export default class SalaryFile extends React.Component { this.state = { value: "", selectedKey: "0", - changeSalaryVisible: false + changeSalaryVisible: false, + editAgentVisible: false } } render() { @@ -70,6 +72,19 @@ export default class SalaryFile extends React.Component { changeSalaryVisible: true }) } + + switch(e.key) { + case "1": + this.setState({ + changeSalaryVisible: true + }) + break; + case "2": + this.setState({ + editAgentVisible: true + }) + break; + } } const handleMenuClick2 = () => { @@ -127,9 +142,16 @@ export default class SalaryFile extends React.Component { { this.state.changeSalaryVisible && {this.setState({changeSalaryVisible: false})}} - /> + visible={this.state.changeSalaryVisible} + onCancel={() => {this.setState({changeSalaryVisible: false})}} + /> + } + + { + this.state.editAgentVisible && {this.setState({editAgentVisible: false})}} + /> }