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}