From 6f7b21ce5b1a7c8605e57c33c82c73972994ef4a 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, 23 Feb 2024 15:20:22 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.10.1.2401.01-=E6=9C=80=E4=BC=98?= =?UTF-8?q?=E5=B9=B4=E7=BB=88=E5=A5=96=E8=AE=A1=E7=A8=8E=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../welfarePlan/components/welfarePlanList/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js index af9ea9da..7050f6be 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js @@ -203,6 +203,16 @@ class Index extends Component { this.getList(this.props); } else { message.error(errormsg || "操作失败"); + this.setState({ + dataSource: _.map(this.state.dataSource, item => { + if (item.id === id) { + return { + ...item, isUse: item.isUse + }; + } + return { ...item }; + }) + }); } }); },