From 0c1c59933e95c4c691d6ba3d11bf4aef98fe9e8d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 15 四月 2020 15:37:44 +0800 Subject: [PATCH] 2020-04-15 --- src/templates/zshare/verifycardexcelin/index.jsx | 41 ++++++++++++++--------------------------- 1 files changed, 14 insertions(+), 27 deletions(-) diff --git a/src/templates/zshare/verifycardexcelin/index.jsx b/src/templates/zshare/verifycardexcelin/index.jsx index c249aeb..9ae2d2e 100644 --- a/src/templates/zshare/verifycardexcelin/index.jsx +++ b/src/templates/zshare/verifycardexcelin/index.jsx @@ -20,7 +20,6 @@ } state = { - updateloading: false, // 淇敼涓� verify: {}, excelColumns: [ { @@ -283,8 +282,6 @@ this.setState({ verify: verify - }, () => { - this.updateChange() }) } @@ -306,8 +303,6 @@ this.setState({ verify: verify - }, () => { - this.updateChange() }) } @@ -329,23 +324,6 @@ this.setState({ verify: verify - }, () => { - this.updateChange() - }) - } - - updateChange = () => { - let _loading = false - if (this.columnForm && this.columnForm.state.editItem) { - _loading = true - } else if (this.scriptsForm && this.scriptsForm.state.editItem) { - _loading = true - } else if (this.uniqueForm && this.uniqueForm.state.editItem) { - _loading = true - } - - this.setState({ - updateloading: _loading }) } @@ -386,10 +364,6 @@ } }, 10) } - - this.setState({ - updateloading: true - }) } handleStatus = (record, type) => { @@ -518,7 +492,20 @@ } } - if (this.state.updateloading) { + let _loading = false + if (this.columnForm && this.columnForm.state.editItem) { + _loading = true + } else if (this.scriptsForm && this.scriptsForm.state.editItem) { + _loading = true + } else if (this.uniqueForm && this.uniqueForm.state.editItem) { + _loading = true + } + + if (this.scriptsForm && this.scriptsForm.props.form.getFieldValue('sql')) { + _loading = true + } + + if (_loading) { confirm({ content: `瀛樺湪鏈繚瀛橀」锛岀‘瀹氭彁浜ゅ悧锛焋, okText: this.props.dict['header.confirm'], -- Gitblit v1.8.0