king
2023-03-06 698504a6c8a1619df9e7a6e467bf3e1a1897cbc5
2023-03-06
6个文件已修改
41 ■■■■ 已修改文件
src/tabviews/custom/components/card/prop-card/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/index.jsx 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkRadio/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkSelect/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils-custom.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -134,7 +134,7 @@
        }, 200)
      }
      if (_config.wrap.datatype === 'dynamic') {
      if (_config.wrap.datatype === 'dynamic' && this.loaded) {
        this.autoExec()
      }
      if (!_config.wrap.cardType && _data.$$uuid) {
@@ -252,10 +252,10 @@
  autoExec = () => {
    const { config, data } = this.state
    if (!config.wrap.autoExec || data.$$empty) return
    if (!config.wrap.autoExec) return
    setTimeout(() => {
      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, [data])
      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data])
    }, 200)
  }
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1453,6 +1453,14 @@
      sql = _prevCustomScript + sql
      sql = sql + _backCustomScript
      sql = sql.replace(/@ID@/ig, `'${record.ID || ''}'`)
      sql = sql.replace(/@BID@/ig, `'${this.props.BID || ''}'`)
      sql = sql.replace(/@LoginUID@/ig, `'${sessionStorage.getItem('LoginUID') || ''}'`)
      sql = sql.replace(/@SessionUid@/ig, `'${localStorage.getItem('SessionUid') || ''}'`)
      sql = sql.replace(/@UserID@/ig, `'${sessionStorage.getItem('UserID') || ''}'`)
      sql = sql.replace(/@Appkey@/ig, `'${window.GLOB.appkey || ''}'`)
      sql = sql.replace(/@typename@/ig, `'admin'`)
      if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) {
        console.info(sql.replace(/\n\s{8}/ig, '\n'))
      }
src/tabviews/zshare/mutilform/index.jsx
@@ -449,17 +449,19 @@
        item.options = item.oriOptions.filter(option => option.ParentID === item.supInitVal || option.value === '')
      }
      if (['select', 'link', 'radio'].includes(item.type) && item.resourceType === '0') { // 选中第一项
      if (['select', 'link', 'radio'].includes(item.type)) { // 选中第一项
        if (typeof(item.initval) === 'string' && item.initval.indexOf('$first') > -1) {
          item.$first = true
          item.initval = ''
        }
        if (item.resourceType === '0') { // 选中第一项
          if (item.$first) {
          item.initval = item.options[0] ? item.options[0].value : ''
        }
      }
      if (typeof(item.initval) === 'string' && item.initval.indexOf('$first') > -1) {
        record[item.field] = ''
      } else {
        record[item.field] = item.initval
      }
      record[item.field] = item.initval
      if (linkFields[item.field]) {
        item.linkFields = linkFields[item.field]
@@ -784,7 +786,7 @@
          item.options = item.oriOptions
        }
        if (['select', 'link', 'radio'].includes(item.type) && typeof(item.initval) === 'string' && item.initval.indexOf('$first') > -1) { // 选中第一项
        if (['select', 'link', 'radio'].includes(item.type) && item.$first) { // 选中第一项
          item.initval = item.options[0] ? item.options[0].value : ''
          this.record[item.field] = item.initval
        }
src/tabviews/zshare/mutilform/mkRadio/index.jsx
@@ -52,7 +52,7 @@
        options: fromJS(nextProps.config.options).toJS()
      })
      if (typeof(config.initval) === 'string' && config.initval.indexOf('$first') > -1) {
      if (config.$first) {
        this.setState({
          value: nextProps.config.initval,
        })
src/tabviews/zshare/mutilform/mkSelect/index.jsx
@@ -57,7 +57,7 @@
        options: fromJS(nextProps.config.options).toJS()
      })
      if (typeof(config.initval) === 'string' && config.initval.indexOf('$first') > -1) {
      if (config.$first) {
        this.setState({
          value: nextProps.config.initval,
        })
src/utils/utils-custom.js
@@ -429,6 +429,9 @@
        if (item.wrap.datatype === 'public' && item.wrap.publicId) {
          item.wrap.publicId = md5(commonId + item.wrap.publicId)
        }
        if (item.wrap.autoExec) {
          item.wrap.autoExec = md5(commonId + item.wrap.autoExec)
        }
        if (item.supNodes && item.supNodes.length > 0) {
          item.supNodes = item.supNodes.map(cell => {
@@ -729,6 +732,10 @@
        return cell
      })
    } else if (['card', 'carousel', 'timeline'].includes(item.type)) {
      if (item.wrap.autoExec) {
        item.wrap.autoExec = md5(commonId + item.wrap.autoExec)
      }
      item.subcards.forEach(card => {
        card.uuid = this.getuuid()