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'],
@@ -268,8 +278,43 @@
      }, {
        value: 'outerpage',
        text: Formdict['header.form.newpage.outer']
      }, {
        value: 'funcbutton',
        text: Formdict['header.form.funcbutton']
      }]
    }, {
    },
    {
      type: 'select',
      key: 'funcType',
      label: Formdict['header.form.funcType'],
      initVal: card.funcType || '',
      required: true,
      options: [{
        value: 'changeuser',
        text: Formdict['header.form.func.changeuser']
      }, {
        value: 'print',
        text: Formdict['header.form.func.print']
      }]
    },
    {
      type: 'select',
      key: 'execMode',
      label: Formdict['header.form.execMode'],
      initVal: card.execMode || 'exec',
      required: true,
      options: [{
        value: 'exec',
        text: Formdict['header.form.exec']
      }, {
        value: 'prompt',
        text: Formdict['header.form.prompt']
      }, {
        value: 'pop',
        text: Formdict['header.form.popform']
      }]
    },
    {
      type: 'select',
      key: 'tabType',
      label: Formdict['header.form.tabType'],
@@ -291,10 +336,13 @@
    {
      type: 'select',
      key: 'pageTemplate',
      label: Formdict['header.form.pageTemplate'],
      label: Formdict['header.form.newpage.type'],
      initVal: card.pageTemplate || '',
      required: true,
      options: []
      options: [{
        value: 'print',
        text: Formdict['header.menu.printTemplate']
      }]
    },
    {
      type: 'text',
@@ -750,7 +798,7 @@
 * @param {*} card 
 * @param {*} inputfields 
 */
export function getModalForm (card, inputfields, subtable = false) {
export function getModalForm (card, inputfields, linkableFields, linksupFields, subtable = false) {
  let _openType = []
  let _fieldlength = 50
@@ -875,12 +923,13 @@
      readonly: false
    },
    {
      type: 'text',
      type: 'select',
      key: 'linkField',
      label: Formdict['header.form.linkField'],
      initVal: card.linkField || '',
      required: true,
      readonly: false
      readonly: false,
      options: linkableFields
    },
    {
      type: 'text',
@@ -976,7 +1025,7 @@
      type: 'radio',
      key: 'required',
      label: Formdict['header.form.field.required'],
      initVal: card.required || 'false',
      initVal: card.required || 'true',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
@@ -1034,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',
@@ -1047,6 +1115,13 @@
      initVal: '',
      required: false,
      options: []
    },
    {
      type: 'multiselect',
      key: 'linkSubField',
      label: Formdict['header.form.linkForm'],
      initVal: card.linkSubField || [],
      options: inputfields
    }
  ]
}