king
2020-04-15 0c1c59933e95c4c691d6ba3d11bf4aef98fe9e8d
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'],