king
2020-01-15 abf582fbe18c20ab4f01458a9209878c77fea9c0
src/templates/tableshare/formconfig.js
@@ -201,23 +201,8 @@
 * @param {*} config         页面配置
 * @param {*} permFuncField  存储过程可用的开始字段
 */
export function getActionForm (card, functip, config, permFuncField) {
  return [
    {
      type: 'text',
      key: 'label',
      label: Formdict['header.form.name'],
      initVal: card.label,
      required: true,
      readonly: false
    },
    {
      type: 'select',
      key: 'OpenType',
      label: Formdict['header.form.openType'],
      initVal: card.OpenType,
      required: true,
      options: [{
export function getActionForm (card, functip, config, permFuncField, type) {
  let openTypeOptions = [{
        value: 'pop',
        text: Formdict['header.form.popform']
      }, {
@@ -235,7 +220,12 @@
      }, {
        value: 'popview',
        text: Formdict['header.form.popview']
      }, {
  }]
  if (type === 'main') {
    openTypeOptions = [
      ...openTypeOptions,
      {
        value: 'tab',
        text: Formdict['header.form.tab']
      }, {
@@ -247,7 +237,25 @@
      }, {
        value: 'outerpage',
        text: Formdict['header.form.newpage.outer']
      }]
      }
    ]
  }
  return [
    {
      type: 'text',
      key: 'label',
      label: Formdict['header.form.name'],
      initVal: card.label,
      required: true,
      readonly: false
    },
    {
      type: 'select',
      key: 'OpenType',
      label: Formdict['header.form.openType'],
      initVal: card.OpenType,
      required: true,
      options: openTypeOptions
    }, {
      type: 'select',
      key: 'tabType',