| | |
| | | required: true, |
| | | options: [{ |
| | | MenuID: 'newtab', |
| | | text: Formdict['header.form.tab'] |
| | | text: Formdict['model.form.tab'] |
| | | }, { |
| | | MenuID: 'newpage', |
| | | text: Formdict['header.form.newpage'] |
| | | text: Formdict['model.form.newpage'] |
| | | }, { |
| | | MenuID: 'currenttab', |
| | | text: Formdict['header.form.currenttab'] |
| | |
| | | required: true, |
| | | options: [{ |
| | | value: 'text', |
| | | text: Formdict['header.form.text'] |
| | | text: Formdict['model.form.text'] |
| | | }, { |
| | | value: 'select', |
| | | text: Formdict['header.form.select'] |
| | | text: Formdict['model.form.select'] |
| | | }, { |
| | | value: 'multiselect', |
| | | text: Formdict['header.form.multiselect'] |
| | | text: Formdict['model.form.multiselect'] |
| | | }, { |
| | | value: 'link', |
| | | text: Formdict['header.form.link'] |
| | | text: Formdict['model.form.link'] |
| | | }, { |
| | | value: 'date', |
| | | text: Formdict['header.form.dateday'] |
| | | text: Formdict['model.form.dateday'] |
| | | }, { |
| | | value: 'dateweek', |
| | | text: Formdict['header.form.dateweek'] |
| | | text: Formdict['model.form.dateweek'] |
| | | }, { |
| | | value: 'datemonth', |
| | | text: Formdict['header.form.datemonth'] |
| | | text: Formdict['model.form.datemonth'] |
| | | }, { |
| | | value: 'daterange', |
| | | text: Formdict['header.form.daterange'] |
| | | text: Formdict['model.form.daterange'] |
| | | }, { |
| | | value: 'group', |
| | | text: '日期(组合)' |
| | | text: Formdict['model.form.dategroup'] |
| | | }] |
| | | }, |
| | | { |
| | |
| | | let opentypes = [ |
| | | { |
| | | value: 'pop', |
| | | text: Formdict['header.form.popform'] |
| | | text: Formdict['model.form.popform'] |
| | | }, { |
| | | value: 'prompt', |
| | | text: Formdict['header.form.prompt'] |
| | | text: Formdict['model.form.prompt'] |
| | | }, { |
| | | value: 'exec', |
| | | text: Formdict['header.form.exec'] |
| | | text: Formdict['model.form.exec'] |
| | | }, { |
| | | value: 'excelIn', |
| | | text: Formdict['header.form.excelIn'] |
| | | text: Formdict['model.form.excelIn'] |
| | | }, { |
| | | value: 'excelOut', |
| | | text: Formdict['header.form.excelOut'] |
| | | text: Formdict['model.form.excelOut'] |
| | | }, { |
| | | value: 'popview', |
| | | text: Formdict['header.form.popview'] |
| | | text: Formdict['model.form.popview'] |
| | | } |
| | | ] |
| | | |
| | | if (type === 'subtable') { |
| | | opentypes.push({ |
| | | value: 'funcbutton', |
| | | text: Formdict['header.form.funcbutton'] |
| | | text: Formdict['model.form.funcbutton'] |
| | | }) |
| | | } else { |
| | | opentypes.push({ |
| | | value: 'tab', |
| | | text: Formdict['header.form.tab'] |
| | | text: Formdict['model.form.tab'] |
| | | }, { |
| | | value: 'innerpage', |
| | | text: Formdict['header.form.newpage'] |
| | | text: Formdict['model.form.newpage'] |
| | | }, { |
| | | value: 'funcbutton', |
| | | text: Formdict['header.form.funcbutton'] |
| | | text: Formdict['model.form.funcbutton'] |
| | | }) |
| | | } |
| | | |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'sql', |
| | | label: Formdict['header.form.tablename'], |
| | | label: Formdict['model.form.tablename'], |
| | | initVal: card.sql || config.setting.tableName || '', |
| | | tooltip: Formdict['header.form.actionhelp.tablename'], |
| | | required: false |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'execMode', |
| | | label: Formdict['header.form.execMode'], |
| | | label: Formdict['model.form.execMode'], |
| | | initVal: card.execMode || 'exec', |
| | | required: true, |
| | | options: [{ |
| | | value: 'exec', |
| | | text: Formdict['header.form.exec'] |
| | | text: Formdict['model.form.exec'] |
| | | }, { |
| | | value: 'prompt', |
| | | text: Formdict['header.form.prompt'] |
| | | text: Formdict['model.form.prompt'] |
| | | }, { |
| | | value: 'pop', |
| | | text: Formdict['header.form.popform'] |
| | | text: Formdict['model.form.popform'] |
| | | }] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'tabType', |
| | | label: Formdict['header.form.tabType'], |
| | | label: Formdict['model.form.tabType'], |
| | | initVal: card.tabType || 'SubTable', |
| | | required: true, |
| | | options: [{ |
| | | value: 'SubTable', |
| | | text: Formdict['header.menu.tab.subtable'] |
| | | text: Formdict['model.menu.tab.subtable'] |
| | | }] |
| | | }, |
| | | { |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'pageTemplate', |
| | | label: Formdict['header.form.newpage.type'], |
| | | label: Formdict['model.form.newpage.type'], |
| | | initVal: card.pageTemplate || '', |
| | | required: true, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'url', |
| | | label: Formdict['header.form.newpage.url'], |
| | | label: Formdict['model.form.newpage.url'], |
| | | initVal: card.url || '', |
| | | required: true |
| | | }, |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'execSuccess', |
| | | label: Formdict['header.form.execSuccess'], |
| | | label: Formdict['model.form.afterSuccess'], |
| | | initVal: card.execSuccess || 'never', |
| | | required: true, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'execError', |
| | | label: Formdict['header.form.execError'], |
| | | label: Formdict['model.form.afterError'], |
| | | initVal: card.execError || 'never', |
| | | required: true, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'sheet', |
| | | label: Formdict['header.form.tablename'], |
| | | label: Formdict['model.form.tablename'], |
| | | initVal: card.sheet || config.setting.tableName || '', |
| | | required: true |
| | | }, |
| | |
| | | required: true, |
| | | options: [{ |
| | | value: 'text', |
| | | text: Formdict['header.form.text'] |
| | | text: Formdict['model.form.text'] |
| | | }, { |
| | | value: 'number', |
| | | text: Formdict['header.form.number'] |
| | | text: Formdict['model.form.number'] |
| | | }, { |
| | | value: 'picture', |
| | | text: Formdict['header.form.picture'] |
| | | text: Formdict['model.form.picture'] |
| | | }, { |
| | | value: 'textarea', |
| | | text: Formdict['header.form.textarea'] |
| | | text: Formdict['model.form.textarea'] |
| | | }] |
| | | }, |
| | | { |
| | |
| | | { |
| | | type: 'cascader', |
| | | key: 'linkmenu', |
| | | label: Formdict['header.form.linkmenu'], |
| | | label: Formdict['model.form.linkmenu'], |
| | | initVal: card.linkmenu || [], |
| | | required: false, |
| | | options: menulist |
| | |
| | | required: true, |
| | | options: [{ |
| | | value: 'text', |
| | | text: Formdict['header.form.text'] |
| | | text: Formdict['model.form.text'] |
| | | }, { |
| | | value: 'number', |
| | | text: Formdict['header.form.number'] |
| | | text: Formdict['model.form.number'] |
| | | }, { |
| | | value: 'select', |
| | | text: Formdict['header.form.select'] |
| | | text: Formdict['model.form.select'] |
| | | }, { |
| | | value: 'multiselect', |
| | | text: Formdict['header.form.multiselect'] |
| | | text: Formdict['model.form.multiselect'] |
| | | }, { |
| | | value: 'link', |
| | | text: Formdict['header.form.link'] |
| | | text: Formdict['model.form.link'] |
| | | }, { |
| | | value: 'fileupload', |
| | | text: Formdict['header.form.fileupload'] |
| | | }, { |
| | | value: 'date', |
| | | text: Formdict['header.form.dateday'] |
| | | text: Formdict['model.form.dateday'] |
| | | }, { |
| | | value: 'datemonth', |
| | | text: Formdict['header.form.datemonth'] |
| | | text: Formdict['model.form.datemonth'] |
| | | }, { |
| | | value: 'datetime', |
| | | text: Formdict['header.form.datetime'] |
| | | text: Formdict['model.form.datetime'] |
| | | }, { |
| | | value: 'textarea', |
| | | text: Formdict['header.form.textarea'] |
| | | text: Formdict['model.form.textarea'] |
| | | }, { |
| | | value: 'funcvar', |
| | | text: Formdict['header.form.funcvar'] |
| | |
| | | text: Formdict['header.form.empty'] |
| | | }, { |
| | | value: 'number', |
| | | text: Formdict['header.form.number'] |
| | | text: Formdict['model.form.number'] |
| | | }, { |
| | | value: 'letter', |
| | | text: Formdict['header.form.letter'] |
| | |
| | | type: 'select', |
| | | key: 'supField', |
| | | label: '上级表单', |
| | | tooltip: '上级表单为下拉选择或关联菜单,设置上级表单后,该表单受控于上级菜单,注:受控关系在该表单隐藏时失效。', |
| | | tooltip: '上级表单为下拉选择或联动菜单,设置上级表单后,该表单受控于上级菜单,注:受控关系在该表单隐藏时失效。', |
| | | initVal: card.supField || '', |
| | | required: false, |
| | | readonly: false, |
| | |
| | | { |
| | | type: 'multiselect', |
| | | key: 'linkSubField', |
| | | label: Formdict['header.form.linkForm'], |
| | | label: Formdict['model.form.link'], |
| | | initVal: card.linkSubField || [], |
| | | options: inputfields |
| | | }, |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'type', |
| | | label: Formdict['header.form.tabType'], |
| | | label: Formdict['model.form.tabType'], |
| | | initVal: card.type || 'SubTable', |
| | | required: true, |
| | | options: [{ |
| | | value: 'SubTable', |
| | | text: Formdict['header.menu.tab.subtable'] |
| | | text: Formdict['model.menu.tab.subtable'] |
| | | }] |
| | | }, |
| | | { |