king
2025-03-09 26e116c38af035db0908c3b6086841708ba2ddeb
2025-03-09
3个文件已修改
37 ■■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/elementform/index.jsx 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/formconfig.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/elementform/index.jsx
@@ -115,6 +115,26 @@
              })
            })
          }
        } else if (item.key === 'noVField') {
          item.options = []
          if (side === 'sub') {
            config.subColumns.forEach(col => {
              let label = `${col.field}(${col.label})`
              item.options.push({
                value: col.field,
                text: label
              })
            })
          } else {
            config.columns.forEach(col => {
              let label = `${col.field}(${col.label})`
              item.options.push({
                value: col.field,
                text: label
              })
            })
          }
        } else if (item.key === 'formula') {
          item.fields = []
@@ -181,6 +201,9 @@
        _options.push('value')
      }
      
      if (this.record.eleType === 'text' && this.record.noValue === 'hide') {
        _options.push('noVField')
      }
      if (this.record.eleType === 'picture' && this.record.noValue === 'show') {
        _options.push('lostTip')
      } else if (this.record.eleType === 'video' && this.record.posterType) {
src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -725,6 +725,16 @@
      ]
    },
    {
      type: 'select',
      key: 'noVField',
      label: '空值字段',
      initVal: card.noVField || '',
      tooltip: '用于控制此静态元素的显示/隐藏,当此字段为空时(数值为0),隐藏当前元素。',
      required: false,
      allowClear: true,
      options: [],
    },
    {
      type: 'radio',
      key: 'lostTip',
      label: '图片缺失',
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -373,6 +373,10 @@
              })())
            }
          }
          if (card.noVField && !data[card.noVField]) {
            val = ''
          }
        } else if (data.hasOwnProperty(card.field)) {
          val = data[card.field] + ''
        }