| | |
| | | import MenuUtils from '@/utils/utils-custom.js' |
| | | /** |
| | | * @description Wrap表单配置信息 |
| | | */ |
| | | export default function (wrap, action = []) { |
| | | export default function (wrap, uuid) { |
| | | let roleList = sessionStorage.getItem('sysRoles') |
| | | let appType = sessionStorage.getItem('appType') |
| | | |
| | |
| | | } else { |
| | | roleList = [] |
| | | } |
| | | |
| | | let menu = window.GLOB.customMenu |
| | | let modules = MenuUtils.getSupModules(menu.components, uuid, menu.interfaces) |
| | | |
| | | const wrapForm = [ |
| | | { |
| | |
| | | field: 'resetContrl', |
| | | label: '重置时', |
| | | initval: wrap.resetContrl || 'init', |
| | | tooltip: '刷新菜单会清空URL变量。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'init', label: '恢复初始值'}, |
| | | {value: 'clear', label: '清空'}, |
| | | {value: 'refresh', label: '刷新菜单'}, |
| | | ], |
| | | }, |
| | | { |
| | |
| | | forbid: !appType || sessionStorage.getItem('editMenuType') === 'popview' |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'searchSize', |
| | | label: '搜索样式', |
| | | initval: wrap.searchSize === 'middle' ? '' : wrap.searchSize || '', |
| | | required: false, |
| | | options: [ |
| | | {value: '', label: '默认'}, |
| | | {value: 'small', label: '小间距'}, |
| | | {value: 'updown', label: '上下排列'}, |
| | | ], |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | field: 'cacheSearch', |
| | | label: '搜索缓存', |
| | | initval: wrap.cacheSearch || 'false', |
| | | tooltip: '启用搜索条件缓存后,在菜单刷新时搜索条件不变。', |
| | | required: false, |
| | | options: [ |
| | | {value: 'true', label: '启用'}, |
| | | {value: 'false', label: '禁用'}, |
| | | ], |
| | | forbid: !!appType |
| | | }, |
| | | { |
| | | type: 'cascader', |
| | | field: 'supModule', |
| | | label: '上级组件', |
| | | initval: wrap.supModule || [], |
| | | required: false, |
| | | allowClear: true, |
| | | options: modules, |
| | | forbid: sessionStorage.getItem('editMenuType') === 'popview' |
| | | }, |
| | | { |
| | | type: 'multiselect', |
| | | field: 'blacklist', |
| | | label: '黑名单', |