king
2020-06-12 89e7167a83e0d8409ca87698e4c08651a37cc26e
src/templates/zshare/formconfig.jsx
@@ -949,14 +949,8 @@
      value: 'tab',
      text: Formdict['header.form.tab']
    }, {
      value: 'blank',
      text: Formdict['header.form.blank']
    }, {
      value: 'innerpage',
      text: Formdict['header.form.newpage.inner']
    }, {
      value: 'outerpage',
      text: Formdict['header.form.newpage.outer']
      text: Formdict['header.form.newpage']
    }, {
      value: 'funcbutton',
      text: Formdict['header.form.funcbutton']
@@ -1095,6 +1089,9 @@
      options: [{
        value: 'print',
        text: Formdict['header.menu.printTemplate']
      }, {
        value: 'custom',
        text: Formdict['header.form.custom']
      }]
    },
    {
@@ -2468,6 +2465,16 @@
 * @param {object} card  // 标签配置信息
 */
export function getCardDetailForm (card, _columns, _type, _actions = []) {
  let actions = ''
  if (_type === 'bottom') {
    actions = card.actions ? card.actions.map(cell => cell.value) : []
  } else {
    _actions.unshift({
      value: '',
      text: '空'
    })
    actions = card.actions[0] ? card.actions[0].value : ''
  }
  return [
    {
      type: 'radio',
@@ -2606,6 +2613,16 @@
      }]
    },
    {
      type: _type === 'bottom' ? 'multiselect' : 'select',
      key: 'actions',
      label: '按钮组',
      tooltip: '',
      initVal: actions,
      required: false,
      forbid: !['header', 'bottom'].includes(_type),
      options: _actions
    },
    {
      type: 'radio',
      key: 'show',
      label: '显示',
@@ -2623,15 +2640,6 @@
        text: '全部'
      }]
    },
    {
      type: 'multiselect',
      key: 'actions',
      label: '按钮组',
      tooltip: '',
      initVal: card.actions ? card.actions.map(cell => cell.value) : [],
      required: false,
      forbid: !['header', 'bottom'].includes(_type),
      options: _actions
    },
  ]
}