diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js index 0541af88..266ea170 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js @@ -13,6 +13,7 @@ import AcctResultImportModal from "../../../calculateDetail/acctResult/importMod import * as API from "../../../../apis/standingBook"; import "./index.less"; import RegEditDetial from "./regEditDetial"; +import { calcPageNo } from "../../../../util"; class MakeupDifference extends Component { constructor(props) { @@ -42,7 +43,8 @@ class MakeupDifference extends Component { API.delBalance(payload).then(({ status, errormsg }) => { if (status) { message.success("删除成功"); - this.diffListRef.recessionList(); + const current = calcPageNo(this.regListRef.state.pageInfo.total, this.regListRef.state.pageInfo.current, 10, ids.length); + this.diffListRef.recessionList({ current }); this.diffListRef.handleResetSelectRowKeys([]); this.setState({ selectKey: [] }); } else { @@ -71,7 +73,7 @@ class MakeupDifference extends Component { window.open(url, "_self"); break; case "search": - this.diffListRef.recessionList(name); + this.diffListRef.recessionList({ userName: name }); break; default: break; @@ -121,7 +123,7 @@ class MakeupDifference extends Component { onCancel={() => { this.setState({ importDiffModal: { ...importDiffModal, visible: false }, fieldData: {} }, () => { const name = this.regTopRef.state.name; - this.diffListRef.recessionList(name); + this.diffListRef.recessionList({ userName: name }); }); }} isStandingBook diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js index 0aeca243..6979d48a 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regList.js @@ -46,7 +46,7 @@ class RegList extends Component { handleResetSelectRowKeys = (selectedRowKeys) => { this.setState({ selectedRowKeys }); }; - recessionList = (userName = "") => { + recessionList = (module) => { const { type } = this.props; const { loading, pageInfo } = this.state; const billMonth = getQueryString("billMonth");