diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js index 9869f832..7d15970c 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js @@ -150,8 +150,28 @@ export default class Attendance extends React.Component { } const renderLeftOperation = () => { + const { attendanceStore: {getAttendanceList}} = this.props; return { + this.setState({ + startDate: value + }) + + getAttendanceList({ + salaryYearMonth: [value, this.state.endDate] + }) + + }} + onEndDateChange={(value) => { + this.setState({ + endDate: value + }) + getAttendanceList({ + salaryYearMonth: [this.state.startDate, value] + }) + + }} /> }