From 2864e1e4467f5dcc18fb7018ccca2ff8917e3eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Thu, 7 Dec 2023 09:40:34 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.9.9.2312.01-=E8=96=AA=E8=B5=84?= =?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=97=E8=A1=A8=E5=9C=A8=E7=BA=BF=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../doCalc/components/salaryEditCalc/index.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js index fed5f8e3..63c86a3f 100644 --- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js +++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js @@ -21,7 +21,7 @@ class Index extends Component { constructor(props) { super(props); this.state = { - salarySobCycle: {}, showSearchAd: false, editable: false, + salarySobCycle: {}, showSearchAd: false, columnDesc: {}, formulaTd: "", showTotalCell: false }; } @@ -50,13 +50,11 @@ class Index extends Component { }; handleShowFormulaTa = (dataIndex) => this.setState({ formulaTd: dataIndex }); handleBatchEditing = (editable) => { - this.setState({ editable: !this.state.editable }, () => { - this.calcTableRef.wrappedInstance.handleBatchEditing(editable); - }); + this.calcTableRef.wrappedInstance.handleBatchEditing(editable); }; render() { - const { salarySobCycle, showSearchAd, formulaTd, columnDesc, showTotalCell, editable } = this.state; + const { salarySobCycle, showSearchAd, formulaTd, columnDesc, showTotalCell } = this.state; const { routeParams: { salaryAcctRecordId } } = this.props; const formulaObj = _.get(columnDesc, [formulaTd]) || {}; return ( @@ -79,13 +77,8 @@ class Index extends Component { {formulaObj.formulaContent}