| | |
| | | * @param {*} config 页面配置 |
| | | * @param {*} permFuncField 存储过程可用的开始字段 |
| | | */ |
| | | export function getActionForm (card, functip, config, permFuncField) { |
| | | export function getActionForm (card, functip, config, permFuncField, type) { |
| | | let openTypeOptions = [{ |
| | | value: 'pop', |
| | | text: Formdict['header.form.popform'] |
| | | }, { |
| | | value: 'prompt', |
| | | text: Formdict['header.form.prompt'] |
| | | }, { |
| | | value: 'exec', |
| | | text: Formdict['header.form.exec'] |
| | | }, { |
| | | value: 'excelIn', |
| | | text: Formdict['header.form.excelIn'] |
| | | }, { |
| | | value: 'excelOut', |
| | | text: Formdict['header.form.excelOut'] |
| | | }, { |
| | | value: 'popview', |
| | | text: Formdict['header.form.popview'] |
| | | }] |
| | | |
| | | if (type === 'main') { |
| | | openTypeOptions = [ |
| | | ...openTypeOptions, |
| | | { |
| | | 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'] |
| | | } |
| | | ] |
| | | } |
| | | return [ |
| | | { |
| | | type: 'text', |
| | |
| | | label: Formdict['header.form.openType'], |
| | | initVal: card.OpenType, |
| | | required: true, |
| | | options: [{ |
| | | value: 'pop', |
| | | text: Formdict['header.form.popform'] |
| | | }, { |
| | | value: 'prompt', |
| | | text: Formdict['header.form.prompt'] |
| | | }, { |
| | | value: 'exec', |
| | | text: Formdict['header.form.exec'] |
| | | }, { |
| | | value: 'excelIn', |
| | | text: Formdict['header.form.excelIn'] |
| | | }, { |
| | | value: 'excelOut', |
| | | text: Formdict['header.form.excelOut'] |
| | | }, { |
| | | value: 'popview', |
| | | text: Formdict['header.form.popview'] |
| | | }, { |
| | | 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'] |
| | | }] |
| | | options: openTypeOptions |
| | | }, { |
| | | type: 'select', |
| | | key: 'tabType', |