diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/deductionListConfirmDialog.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/deductionListConfirmDialog.js index b13202ff..5513744a 100644 --- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/deductionListConfirmDialog.js +++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/deductionListConfirmDialog.js @@ -12,6 +12,7 @@ import DeductionListConfirmEmployeeDialog from "./deductionListConfirmEmployeeDi import DeductionAmountEditDialog from "./deductionAmountEditDialog"; import { Button, Col, message, Modal, Row } from "antd"; import * as API from "../../../apis/declare"; +import { calcPageNo } from "../../../util"; const { getLabel } = WeaLocaleProvider, { getUrlParams } = WeaTools; @@ -63,8 +64,14 @@ class DeductionListConfirmDialog extends Component { onOk: () => { API.deleteDeductionAmount({ ids: this.state.selectedRowKeys }).then(({ status, errormsg }) => { if (status) { + const { pageInfo } = this.state, { current, pageSize, total } = pageInfo; message.success(getLabel(111, "操作成功")); - this.setState({ selectedRowKeys: [] }, () => this.getDeductionAmountList()); + this.setState({ + selectedRowKeys: [], + pageInfo: { + ...pageInfo, current: calcPageNo(total, current, pageSize, this.state.selectedRowKeys.length) + } + }, () => this.getDeductionAmountList()); } else { message.error(errormsg); } @@ -125,7 +132,7 @@ class DeductionListConfirmDialog extends Component { }; const height = this.refs.employeeRef ? this.refs.employeeRef.state.height : 400; return ( - {getLabel(111, "扣除名单确认")}