king
2023-08-27 53a6a5761ecffcfe459928ef3b60f9b114fcd27f
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -440,7 +440,7 @@
          let func = new Function('data', col.formula)
          content = func([record])
        } catch (e) {
          if (window.debugger) {
          if (window.GLOB.debugger === true) {
            console.warn(e)
          }
          content = ''
@@ -456,7 +456,7 @@
            // eslint-disable-next-line
            content = eval(content)
          } catch (e) {
            if (window.debugger) {
            if (window.GLOB.debugger === true) {
              console.info(content)
              console.warn(e)
            }
@@ -849,7 +849,7 @@
          let func = new Function('data', col.formula)
          content = func([record])
        } catch (e) {
          if (window.debugger) {
          if (window.GLOB.debugger === true) {
            console.warn(e)
          }
          content = ''
@@ -865,7 +865,7 @@
            // eslint-disable-next-line
            content = eval(content)
          } catch (e) {
            if (window.debugger) {
            if (window.GLOB.debugger === true) {
              console.info(content)
              console.warn(e)
            }
@@ -1159,7 +1159,7 @@
    let mainItems = []  // 云端或单点数据
    let localItems = [] // 本地数据
    let cache = setting.cache !== 'false'
    let debug = window.GLOB.debugger === true || window.debugger === true
    let debug = window.GLOB.debugger === true
    let _sql = `Declare @mk_departmentcode nvarchar(512),@mk_organization nvarchar(512),@mk_user_type nvarchar(20)  select @mk_departmentcode='${sessionStorage.getItem('departmentcode') || ''}',@mk_organization='${sessionStorage.getItem('organization') || ''}',@mk_user_type='${sessionStorage.getItem('mk_user_type') || ''}'\n`
    let _sso = _sql
@@ -1674,12 +1674,12 @@
    if (submit.intertype === 'system') { // 系统存储过程
      param.func = 'sPC_TableData_InUpDe'
      
      param.excel_in_type = 'true'
      param.LText1 = Utils.formatOptions(result.insert)
      param.LText2 = Utils.formatOptions(result.bottom)
      delete param.excel_in
      param.exec_type = 'y'
      param.LText = Utils.formatOptions(result.sql)
      param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
      param.secretkey = Utils.encrypt(param.LText, param.timestamp)
      param.secretkey = Utils.encrypt('', param.timestamp)
      param.menuname = submit.logLabel
@@ -1701,6 +1701,11 @@
    } else if (submit.intertype === 'inner' && submit.innerFunc) { // 自定义存储过程
      param.func = submit.innerFunc
      if (submit.recordUser === 'true') {
        param.username = sessionStorage.getItem('User_Name') || ''
        param.fullname = sessionStorage.getItem('Full_Name') || ''
      }
      Api.genericInterface(param).then((res) => {
        if (res.status) {
          this.execSuccess(res)