king
2024-12-21 614915fa4d0bf470515ac30821fb651cf5238fc9
2024-12-21
3个文件已修改
45 ■■■■■ 已修改文件
src/api/index.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/verifycard/index.jsx 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js
@@ -1225,7 +1225,7 @@
  /**
   * @description sql检验
   */
  sDebug (sql) {
  sDebug (sql, skip = false) {
    let param = {
      func: 's_debug_sql',
      exec_type: window.GLOB.execType || 'y',
@@ -1253,6 +1253,8 @@
    window.mkInfo(`/* sql 验证 */\n${sql.replace(/\n\s{6,20}/ig, '\n')}`)
    if (skip) return
    sql = sql.replace(/\n/ig, ' ')
    param.LText = Utils.formatOptions(sql, param.exec_type)
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1825,6 +1825,16 @@
      })
    }
    if (/@.*@/.test(url)) {
      Object.keys(param).forEach(key => {
        let reg = new RegExp('@' + key + '@', 'ig')
        if (reg.test(url)) {
          url = url.replace(reg, param[key])
          delete param[key]
        }
      })
    }
    let _params = {
      url: url,
      method: btn.method || 'post'
src/templates/zshare/verifycard/index.jsx
@@ -2075,6 +2075,10 @@
        }
      })
    } else {
      let sql = this.getSysExecSql(verify, false)
      Api.sDebug(sql, true)
      this.setState({ verify })
    }
  }
@@ -2144,6 +2148,10 @@
        }
      })
    } else {
      let sql = this.getSysExecSql(verify, false)
      Api.sDebug(sql, true)
      MKEmitter.emit('editLineId', values.uuid)
  
      this.setState({ verify })
@@ -2209,6 +2217,29 @@
        this.setState({ verify })
      }
    } else {
      let sql = this.getSysBackSql(verify.cbScripts, card.cbTable)
      if (sql) {
        let defSql = this.getSysExecSql(verify, true)
        sql = `${defSql}
          ${sql}
        `
        if (card.output) {
          sql += `
            aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg,${card.output} as mk_b_id`
        } else {
          sql += `
            aaa: select @ErrorCode as ErrorCode,@retmsg as retmsg`
        }
        sql = sql.replace(/@typename@/ig, `'typename'`)
        sql = sql.replace(/@\$|\$@/ig, '').replace(/@datam@/ig, `''`)
        Api.sDebug(sql, true)
      }
      MKEmitter.emit('editLineId', values.uuid)
      this.setState({ verify })