king
2020-03-12 1dfd49b103e721f9bb63fd4d472b6fcc225d94a1
src/templates/tableshare/formconfig.js
@@ -205,6 +205,16 @@
      }]
    },
    {
      type: 'number',
      key: 'ratio',
      min: 1,
      max: 24,
      label: Formdict['header.form.ratio'],
      tooltip: '每行分为24份,比例可设置为1-24',
      initVal: card.ratio,
      required: false
    },
    {
      type: 'select',
      key: 'quick',
      label: Formdict['header.form.quickadd'],
@@ -788,7 +798,7 @@
 * @param {*} card 
 * @param {*} inputfields 
 */
export function getModalForm (card, inputfields, linkableFields, subtable = false) {
export function getModalForm (card, inputfields, linkableFields, linksupFields, subtable = false) {
  let _openType = []
  let _fieldlength = 50
@@ -1073,11 +1083,30 @@
      }]
    },
    {
      type: 'multiselect',
      key: 'linkSubField',
      label: Formdict['header.form.linkForm'],
      initVal: card.linkSubField || [],
      options: inputfields
      type: 'number',
      key: 'maxRows',
      label: Formdict['header.form.maxRows'],
      initVal: card.maxRows || 6,
      required: false
    },
    {
      type: 'select',
      key: 'supField',
      label: '上级表单',
      tooltip: '上级表单为下拉选择或关联菜单,设置上级表单后,该表单受控于上级菜单,注:受控关系在该表单隐藏时失效。',
      initVal: card.supField || '',
      required: false,
      readonly: false,
      options: linksupFields
    },
    {
      type: 'text',
      key: 'supvalue',
      label: '显示值',
      tooltip: '选择上级表单后,填写显示值,只有上级表单值与显示值相同时,该表单才会显示,注:多个值用逗号分隔。',
      initVal: card.supvalue || '',
      required: true,
      readonly: false
    },
    {
      type: 'select',
@@ -1086,6 +1115,13 @@
      initVal: '',
      required: false,
      options: []
    },
    {
      type: 'multiselect',
      key: 'linkSubField',
      label: Formdict['header.form.linkForm'],
      initVal: card.linkSubField || [],
      options: inputfields
    }
  ]
}