| | |
| | | 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'] |
| | |
| | | options: [{ |
| | | value: 'print', |
| | | text: Formdict['header.menu.printTemplate'] |
| | | }, { |
| | | value: 'custom', |
| | | text: Formdict['header.form.custom'] |
| | | }] |
| | | }, |
| | | { |
| | |
| | | * @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', |
| | |
| | | }] |
| | | }, |
| | | { |
| | | 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: '显示', |
| | |
| | | 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 |
| | | }, |
| | | |
| | | ] |
| | | } |