king
2024-06-12 730e05cb66cac2c3a9b90df5dfae3c4c1394aa6e
src/templates/zshare/formconfig.jsx
@@ -444,7 +444,7 @@
        text: '本地'
      }, {
        value: 'sso',
        text: '系统'
        text: '单点'
      }]
    },
    {
@@ -797,19 +797,19 @@
      })
    }
    
    if (!['select', 'link', 'radio', 'checkcard', 'multiselect'].includes(item.type)) return
    if (['select', 'link', 'radio', 'checkcard', 'multiselect'].includes(item.type)) {
      linksupFields.push({
        field: item.field,
        label: item.label
      })
    }
    linksupFields.push({
      field: item.field,
      label: item.label
    })
    if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return
    linkableFields.push({
      field: item.field,
      label: item.label + '-表单'
    })
    if (['select', 'link', 'radio', 'popSelect'].includes(item.type) || (item.type === 'checkcard' && item.multiple !== 'true')) {
      linkableFields.push({
        field: item.field,
        label: item.label + '-表单'
      })
    }
  })
  let _fields = linkableFields.map(cell => cell.field)
@@ -1012,12 +1012,20 @@
  let options = card.options || []
  if (['select', 'radio', 'link'].includes(card.type) && card.setAll === 'true') { // 兼容
    options.unshift({
    let cell = {
      key: 'empty',
      Value: '',
      Text: card.emptyText || '空',
      ParentID: ''
    })
    }
    if (card.linkSubField) {
      card.linkSubField.forEach(m => {
        cell[m] = ''
      })
    }
    options.unshift(cell)
  }
  let initval = card.initval || ''
@@ -1869,7 +1877,7 @@
        text: '本地'
      }, {
        value: 'sso',
        text: '系统'
        text: '单点'
      }]
    },
    {