From 23c6ad30ed348b524303eb58ffc1bdb815510858 Mon Sep 17 00:00:00 2001 From: liyongshun <971387674@qq.com> Date: Wed, 29 Jun 2022 13:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E5=8B=A4=E5=BC=95=E7=94=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/dataAcquisition/attendance/index.js | 63 ++++++++++--------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js index 3f74f2d9..99cb4514 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js @@ -142,12 +142,13 @@ export default class Attendance extends React.Component { handleFieldPageChange(value) { const { attendanceStore: { getAttendanceFieldList } } = this.props; this.fieldSearch.current = value; + this.fieldSearch.pageSize = this.pageInfo.pageSize; getAttendanceFieldList(this.fieldSearch); } handleFieldShowSizeChange(pageInfo) { const { attendanceStore: { getAttendanceFieldList } } = this.props; - this.fieldSearch.current = value; + this.fieldSearch.current = pageInfo; getAttendanceFieldList({ ...this.fieldSearch, ...pageInfo }); } @@ -841,36 +842,36 @@ export default class Attendance extends React.Component { {/* {this.state.modalVisiable && */} - { - this.handleInitImportModal(); - }} - params={this.state.modalParam} - columns={previewAttendQuoteColumns} - step={step} - setStep={setStep} - slideDataSource={previewAttendQuoteDataSource} - importResult={importResult} - onFinish={() => { - this.handleFinish(); - }} - previewImport={params => { - this.handlePreviewImport(params); - }} - importFile={params => { - this.handleImport(params); - }} - headerSetCompoent={renderHeaderSetCompoent()} - templateLink={() => { - this.handleTemplateLinkClick(); - }} - renderFormComponent={() => renderFormComponent()} - visiable={this.state.modalVisiable} - onCancel={() => { - this.handleFinish(); - }} - /> - {/* } */} + { + this.handleInitImportModal(); + }} + params={this.state.modalParam} + columns={previewAttendQuoteColumns} + step={step} + setStep={setStep} + slideDataSource={previewAttendQuoteDataSource} + importResult={importResult} + onFinish={() => { + this.handleFinish(); + }} + previewImport={params => { + this.handlePreviewImport(params); + }} + importFile={params => { + this.handleImport(params); + }} + headerSetCompoent={renderHeaderSetCompoent()} + templateLink={() => { + this.handleTemplateLinkClick(); + }} + renderFormComponent={() => renderFormComponent()} + visiable={this.state.modalVisiable} + onCancel={() => { + this.handleFinish(); + }} + /> + {/* } */} {