king
2020-04-17 4f8ffec8fc4aa9918264a3b3b4952421d896f5eb
src/templates/zshare/verifycardexcelin/customscript/index.jsx
@@ -105,21 +105,21 @@
          notification.warning({
            top: 92,
            message: 'sql中\'必须成对出现',
            duration: 10
            duration: 5
          })
          return
        } else if (_lparen !== _rparen) {
          notification.warning({
            top: 92,
            message: 'sql中()必须成对出现',
            duration: 10
            duration: 5
          })
          return
        } else if (/--/ig.test(values.sql)) {
          notification.warning({
            top: 92,
            message: '自定义sql语句中,不可出现字符 -- ,注释请用 /*内容*/',
            duration: 10
            duration: 5
          })
          return
        }
@@ -130,7 +130,7 @@
          notification.warning({
            top: 92,
            message: 'sql中不可使用' + error,
            duration: 10
            duration: 5
          })
          return
        }
@@ -139,9 +139,19 @@
          aaa:
        `
        let _initsql = ''
        this.props.scripts.forEach(script => {
          if (this.state.editItem && this.state.editItem.uuid === script.uuid) return
          if (script.status === 'false' || script.position !== 'init') return
          _initsql += `
            ${script.sql}
            `
        })
        let param = {
          func: 's_debug_sql',
          LText: this.state.verifySql + values.sql + tail
          LText: this.state.verifySql + _initsql + values.sql + tail
        }
        param.LText = Utils.formatOptions(param.LText)
        param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000'