king
2023-05-22 43a517b80f2803e0dcf6658113520c4a14c8c17f
src/templates/sharecomponent/actioncomponent/verifyexcelout/customscript/index.jsx
@@ -115,7 +115,7 @@
    this.props.form.setFieldsValue({
      sql: record.sql,
      position: record.position || 'back'
      // position: record.position || 'back'
    })
  }
@@ -163,6 +163,13 @@
            duration: 5
          })
          return
        } else if (/,,/ig.test(values.sql)) {
          notification.warning({
            top: 92,
            message: '自定义sql语句中,不可出现连续的英文逗号(,,)',
            duration: 5
          })
          return
        }
        let error = Utils.verifySql(values.sql, 'customscript')
@@ -187,7 +194,7 @@
              editItem: null
            })
            this.props.form.setFieldsValue({
              sql: ''
              sql: ' '
            })
          } else {
            this.setState({
@@ -205,7 +212,7 @@
    })
    
    this.props.form.setFieldsValue({
      sql: ''
      sql: ' '
    })
  }
@@ -225,6 +232,9 @@
    }
    let _sql = this.props.form.getFieldValue('sql')
    if (/^\s+$/.test(_sql)) {
      _sql = ''
    }
    if (_sql) {
      _sql = _sql + `