king
2024-05-25 10f5efae1624c89d9a8f04ac331e07c895ea282a
2024-05-25
2个文件已修改
32 ■■■■■ 已修改文件
src/tabviews/zshare/mutilform/mkPopSelect/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/formconfig.jsx 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkPopSelect/index.jsx
@@ -270,6 +270,14 @@
      })
    }
    if (config.linkFields) {
      config.linkFields.forEach((m, i) => {
        setTimeout(() => {
          MKEmitter.emit('mkFP', m.uuid, val, 0)
        }, (i + 1) * 100)
      })
    }
    this.props.onChange(val, other)
    this.setState({value: val, showValue: ''}, () => {
      if (config.enter === 'tab') {
src/templates/zshare/formconfig.jsx
@@ -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)