king
2020-03-04 54f2a3e1e54a6d8289ccb8d5de158f23150d7a5e
src/templates/modalconfig/index.jsx
@@ -386,6 +386,10 @@
    const { config } = this.state
    let _inputfields = []
    let _linkableFields = []
    let _linksupFields = [{
      value: '',
      text: '空'
    }]
    let _formfields = []
    // 设置下拉菜单可关联字段(上级与下级)
@@ -404,6 +408,7 @@
    }
    let uniq = new Map()
    uniq.set(card.field, true)
    _formfields.forEach(item => {
      if (item.field && !uniq.has(item.field)) {
        uniq.set(item.field, true)
@@ -411,6 +416,10 @@
        _linkableFields.push({
          value: item.field,
          text: item.label + ' (表单)'
        })
        _linksupFields.push({
          value: item.field,
          text: item.label
        })
      }
    })
@@ -459,7 +468,7 @@
      visible: true,
      modalType: type,
      card: card,
      formlist: getModalForm(card, _inputfields, _linkableFields, !!this.props.editTab)
      formlist: getModalForm(card, _inputfields, _linkableFields, _linksupFields, !!this.props.editTab)
    })
  }