king
2020-02-03 75623dd039b742dbb44fb4c6b4af563404ed9c7f
src/templates/tableshare/formconfig.js
@@ -190,6 +190,19 @@
        value: 'button',
        text: Formdict['header.form.button']
      }]
    },
    {
      type: 'radio',
      key: 'database',
      label: Formdict['header.form.database'],
      initVal: card.database || 'local',
      options: [{
        value: 'local',
        text: Formdict['header.form.database.local']
      }, {
        value: 'sso',
        text: Formdict['header.form.database.sso']
      }]
    }
  ]
}
@@ -673,7 +686,16 @@
 * @param {*} card 
 * @param {*} inputfields 
 */
export function getModalForm (card, inputfields) {
export function getModalForm (card, inputfields, subtable = false) {
  let _openType = []
  if (subtable) {
    _openType.push({
      value: 'linkMain',
      text: Formdict['header.form.linkMain']
    })
  }
  return [
    {
      type: 'text',
@@ -727,7 +749,11 @@
      }, {
        value: 'textarea',
        text: Formdict['header.form.textarea']
      }]
      }, {
        value: 'funcvar',
        text: Formdict['header.form.funcvar']
      },
      ..._openType]
    },
    {
      type: 'text',
@@ -872,6 +898,32 @@
      }]
    },
    {
      type: 'radio',
      key: 'hidden',
      label: Formdict['header.form.field.ishidden'],
      initVal: card.hidden || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
      }]
    },
    {
      type: 'radio',
      key: 'database',
      label: Formdict['header.form.database'],
      initVal: card.database || 'local',
      options: [{
        value: 'local',
        text: Formdict['header.form.database.local']
      }, {
        value: 'sso',
        text: Formdict['header.form.database.sso']
      }]
    },
    {
      type: 'multiselect',
      key: 'linkSubField',
      label: Formdict['header.form.linkForm'],