king
2025-03-10 89802303966e1964da0b0c97314ff4f2650d28a8
2025-03-10
3个文件已修改
33 ■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/elementform/index.jsx 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/formconfig.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/elementform/index.jsx
@@ -201,9 +201,17 @@
        _options.push('value')
      }
      
      if (this.record.eleType === 'text' && this.record.datatype === 'static' && this.record.noValue === 'hide') {
        _options.push('noVField')
      if (this.record.eleType === 'text' && this.record.noValue === 'hide') {
        if (this.record.datatype === 'static') {
          _options.push('noVField')
          if (this.record.noVField) {
            _options.push('noVExtra')
          }
        } else {
          _options.push('noVExtra')
        }
      }
      if (this.record.eleType === 'picture' && this.record.noValue === 'show') {
        _options.push('lostTip')
      } else if (this.record.eleType === 'video' && this.record.posterType) {
@@ -409,7 +417,7 @@
          return item
        })
      })
    } else if (['datatype', 'showInfo', 'showType', 'fixStyle', 'posterType', 'eval', 'linkType', 'tipType', 'noValue'].includes(key)) {
    } else if (['datatype', 'showInfo', 'showType', 'fixStyle', 'posterType', 'eval', 'linkType', 'tipType', 'noValue', 'noVField'].includes(key)) {
      let _options = this.getOptions()
      this.setState({
src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -735,6 +735,14 @@
      options: [],
    },
    {
      type: 'text',
      key: 'noVExtra',
      label: '空值扩展',
      initVal: card.noVExtra || '',
      tooltip: '当字段值(或静态元素的空值字段)为扩展值时(不区分大小写,多个值用逗号分隔),等效于空值,元素将被隐藏。',
      required: false
    },
    {
      type: 'radio',
      key: 'lostTip',
      label: '图片缺失',
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -374,11 +374,18 @@
            }
          }
          if (card.noVField && !data[card.noVField]) {
            val = ''
          if (card.noVField) {
            if (!data[card.noVField]) {
              val = ''
            } else if (card.noVExtra && new RegExp('^(' + card.noVExtra.split(',').join('|') + ')$', 'ig').test(data[card.noVField])) {
              val = ''
            }
          }
        } else if (data.hasOwnProperty(card.field)) {
          val = data[card.field] + ''
          if (card.noVExtra && val && new RegExp('^(' + card.noVExtra.split(',').join('|') + ')$', 'ig').test(val)) {
            val = ''
          }
        }
  
        if (val && card.format && card.format !== 'encryption') {