/* * * * @author whiteshader@163.com * @datetime 2022/02/22 * * */ export default [ { path: '/user', layout: false, routes: [ { path: '/user/login', layout: false, name: 'login', component: './User/login' }, { path: '/user', redirect: '/user/login' }, { name: 'register-result', icon: 'smile', path: '/user/register-result', component: './User/register-result' }, { name: 'register', icon: 'smile', path: '/user/register', component: './User/register' }, { component: '404' } ] }, { name: 'account', icon: 'user', path: '/account', component: '@/layouts/TabsLayout', routes: [ { path: '/account', redirect: '/account/center' }, { name: 'center', icon: 'smile', path: '/account/center', component: './account/center', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.account.center' }, { name: 'settings', icon: 'smile', path: '/account/settings', component: './account/settings', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.account.settings' } ] }, { name: 'system', icon: 'BugOutlined', path: '/system', component: '@/layouts/TabsLayout', routes: [ { path: '/', redirect: '/system/user' }, { name: 'user', icon: 'PartitionOutlined', path: '/system/user', component: 'system/user/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.user' }, { name: 'menu', icon: 'PartitionOutlined', path: '/system/menu', component: 'system/menu/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.menu' }, { name: 'role', icon: 'PartitionOutlined', path: '/system/role', component: 'system/role/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.role' }, { name: 'dept', icon: 'PartitionOutlined', path: '/system/dept', component: 'system/dept/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.dept' }, { name: 'post', icon: 'PartitionOutlined', path: '/system/post', component: 'system/post/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.post' }, { name: 'dict', icon: 'PartitionOutlined', path: '/system/dict', component: 'system/dict/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.dict' }, { name: 'dictData', icon: 'PartitionOutlined', path: '/system/dictData/index/:id?', component: 'system/dictData/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.dictData' }, { name: 'config', icon: 'PartitionOutlined', path: '/system/config', component: 'system/config/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.config' }, { name: 'notice', icon: 'PartitionOutlined', path: '/system/notice', component: 'system/notice/index', access: 'authorize', wrappers: ['@/components/KeepAlive'], keppAlive: true, title: 'menu.title.notice' }, { name: 'log', icon: 'BugOutlined', path: '/system/log/', routes: [ { path: '/', redirect: '/system/log/operlog' } ] } ] }, { name: 'model', path: '/model', component: '@/layouts/TabsLayout', routes: [ { name: 'modelChildren', icon: 'BugOutlined', path: '/model/modelChildren', component: 'pdManer/pages/getstore/index', wrappers: ['@/components/KeepAlive'], keppAlive: false, access:'authorize', title:'menu.title.modelChildren' } ] }, { name: 'OnlinInquiry', path: '/OnlinInquiry', component: '@/layouts/TabsLayout', routes: [ { name: 'OnlinInquiryChildren', path: '/OnlinInquiry/OnlinInquiryChildren', component: 'OnlinInquiry/src/entryPointFactory', wrappers: ['@/components/KeepAlive'], keppAlive: false, access:'authorize', title:'menu.title.OnlinInquiryChildren' } ] }, // { // name: 'pdmaner', // icon: 'BugOutlined', // path: '/getstore', // component: '@/pdManer/pages/getstore/index', // keppAlive: true // }, { name: 'modelMonitor', icon: 'BugOutlined', path: '/modelMonitor', component: '@/layouts/TabsLayout', routes: [ { name: 'theme', icon: 'PartitionOutlined', path: '/modelMonitor/theme', component: 'modelMonitor/theme/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'modelMonitor', title: 'menu.title.theme' }, { name: 'databasir', icon: 'PartitionOutlined', path: '/modelMonitor/databasir', component: 'modelMonitor/databasir/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'modelMonitor', title: 'menu.title.databasir', }, { name: 'dataextension', icon: 'PartitionOutlined', path: '/modelMonitor/dataextension', component: 'modelMonitor/dataextension/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'modelMonitor', title: 'menu.title.dataextension' }, { name: 'subjectdetails', icon: 'PartitionOutlined', path: '/modelMonitor/subjectdetails', component: 'modelMonitor/subjectdetails/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'modelMonitor', title: 'menu.title.subjectdetails' }, { name: 'alarmmanage', icon: 'PartitionOutlined', path: '/modelMonitor/alarmmanage', component: 'modelMonitor/alarmmanage/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'modelMonitor', title: 'menu.title.alarmmanage' } ] }, { name: 'textpage', icon: 'BugOutlined', path: '/textpage', component: '@/layouts/TabsLayout', routes: [ { name: 'sbhzl', icon: 'PartitionOutlined', path: '/textpage/sbhzl', component: 'textpage/sbhzl/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'textpage', title: 'menu.title.sbhzl' }, { name: 'test2', icon: 'PartitionOutlined', path: '/textpage/test2', component: 'textpage/test2/index', wrappers: ['@/components/KeepAlive'], keppAlive: true, access: 'textpage', title: 'menu.title.test2' } ] }, { path: '/', redirect: '/model/modelChildren' // redirect:'/modelMonitor/theme' }, { component: './404' } ]