From de6736d01c2b9628e0527f7431cad8a63260663e Mon Sep 17 00:00:00 2001 From: MustangDeng <670124965@qq.com> Date: Wed, 23 Mar 2022 16:17:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4=E5=BC=95=E7=94=A8=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/dataAcquisition/attendance/index.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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] + }) + + }} /> }