king
2022-06-18 fe21d23b147ed5cec22b4f76a88840b05495d4ad
src/menu/datasource/verifycard/customscript/index.jsx
@@ -5,6 +5,7 @@
import Utils from '@/utils/utils.js'
import CodeMirror from '@/templates/zshare/codemirror'
import MKEmitter from '@/utils/events.js'
import './index.scss'
class CustomForm extends Component {
@@ -150,6 +151,9 @@
            editItem: null,
            loading: false
          })
          MKEmitter.emit('editLineId', values.uuid)
          this.props.form.setFieldsValue({
            sql: ' '
          })
@@ -165,7 +169,9 @@
  selectScript = (value, option) => {
    let _sql = this.props.form.getFieldValue('sql')
    if (_sql) {
    if (_sql === ' ') {
      _sql = ''
    } else if (_sql) {
      _sql = _sql + ` 
      `