| | |
| | | } |
| | | |
| | | /** |
| | | * @description 获取主菜单基本信息表单配置信息 |
| | | * @param {object} menu // 主表基本信息 |
| | | * @param {object} config // 主表配置信息 |
| | | */ |
| | | export function getMainMenuForm (menu, _config) { |
| | | return [ |
| | | { |
| | | type: 'select', |
| | | key: 'fstMenuId', |
| | | label: Formdict['model.menu.level1'], |
| | | initVal: menu.fstMenuId, |
| | | required: true, |
| | | readonly: false, |
| | | options: menu.fstMenuList |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'parentId', |
| | | label: Formdict['model.menu.level2'], |
| | | initVal: menu.ParentID, |
| | | required: true, |
| | | readonly: false, |
| | | options: menu.supMenuList |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'MenuName', |
| | | label: Formdict['model.menu'] + Formdict['model.name'], |
| | | initVal: menu.MenuName, |
| | | required: true, |
| | | readonly: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'MenuNo', |
| | | label: Formdict['model.menu'] + Formdict['model.param'], |
| | | initVal: menu.MenuNo, |
| | | required: true, |
| | | readonly: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'opentype', |
| | | label: Formdict['model.openway'], |
| | | initVal: menu.PageParam.OpenType, |
| | | required: true, |
| | | options: [{ |
| | | MenuID: 'newtab', |
| | | text: Formdict['model.form.tab'] |
| | | }, { |
| | | MenuID: 'newpage', |
| | | text: Formdict['model.form.newpage'] |
| | | }, { |
| | | MenuID: 'currenttab', |
| | | text: Formdict['header.form.currenttab'] |
| | | }] |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'easyCode', |
| | | label: Formdict['header.form.easyCode'], |
| | | initVal: _config.easyCode, |
| | | required: false, |
| | | readonly: false |
| | | } |
| | | ] |
| | | } |
| | | |
| | | /** |
| | | * @description 获取子菜单基本信息表单配置信息 |
| | | * @param {object} config // 子表配置信息 |
| | | */ |
| | | export function getSubMenuForm (config) { |
| | | return [ |
| | | { |
| | | type: 'text', |
| | | key: 'MenuName', |
| | | label: Formdict['header.menu.viewName'], |
| | | initVal: config.tabName, |
| | | required: true, |
| | | readonly: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'MenuNo', |
| | | label: Formdict['model.menu'] + Formdict['model.param'], |
| | | initVal: config.tabNo, |
| | | required: true, |
| | | readonly: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'Remark', |
| | | label: Formdict['header.menu.Remark'], |
| | | initVal: config.Remark, |
| | | required: false, |
| | | readonly: false |
| | | } |
| | | ] |
| | | } |
| | | |
| | | /** |
| | | * @description 获取搜索条件表单配置信息 |
| | | * @param {object} card // 搜索条件对象 |
| | | * @param {Array} roleList // 角色列表 |