From 42ec1c691817ebe3d40f82f7061427d604125ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 16 Dec 2022 16:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=B7=AE=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../standingBookDetail/components/makeupDifference.js | 8 +++++--- .../standingBookDetail/components/regList.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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");