From 8040e2fa27aa8ddd2fe605dd09ebd98ca889b0b4 Mon Sep 17 00:00:00 2001 From: 18652063575 Date: Mon, 7 Nov 2022 14:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E6=98=BE=E7=A4=BA=E8=84=B1=E6=95=8F?= =?UTF-8?q?=E8=A1=A8=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/appConfig/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/appConfig/index.js b/pc4mobx/hrmSalary/pages/appConfig/index.js index a2b663c6..97054546 100644 --- a/pc4mobx/hrmSalary/pages/appConfig/index.js +++ b/pc4mobx/hrmSalary/pages/appConfig/index.js @@ -14,7 +14,7 @@ class AppConfig extends Component { super(props); this.state = { openAcctResultSum: "0", - displayPersonalInfo: "0", + displayEmpInfoReport: "0", loading: false }; } @@ -26,27 +26,27 @@ class AppConfig extends Component { queryAppsetting = () => { API.queryAppsetting().then(({ status, data }) => { if (status) { - const { openAcctResultSum } = data; - this.setState({ openAcctResultSum }); + const { openAcctResultSum, displayEmpInfoReport } = data; + this.setState({ openAcctResultSum, displayEmpInfoReport }); } }); }; appSettingSave = () => { - const { openAcctResultSum } = this.state; + const { openAcctResultSum, displayEmpInfoReport } = this.state; this.setState({ loading: true }); - API.appSettingSave({ openAcctResultSum }).then(({ status }) => { + API.appSettingSave({ openAcctResultSum, displayEmpInfoReport }).then(({ status, errormsg }) => { this.setState({ loading: false }); if (status) { message.success("设置成功!"); this.queryAppsetting(); } else { - message.error("设置失败!"); + message.error(errormsg || "设置失败!"); } }); }; render() { - const { openAcctResultSum,displayPersonalInfo, loading } = this.state; + const { openAcctResultSum, displayEmpInfoReport, loading } = this.state; const btns = []; const items = [ { @@ -61,9 +61,9 @@ class AppConfig extends Component { { com: CheckBox({ label: "是否显示脱敏表人员信息", - value: displayPersonalInfo, - onChange: (displayPersonalInfo) => { - this.setState({ displayPersonalInfo }); + value: displayEmpInfoReport, + onChange: (displayEmpInfoReport) => { + this.setState({ displayEmpInfoReport }); } }) }