| | |
| | | component: () => import('@/views/dailyreport/index'), |
| | | meta: { title: '走航监测日报', icon: 'example' } |
| | | } |
| | | |
| | | // 业务交办 |
| | | const summaryPage = { |
| | | path: 'toCarryOutLegislativeReforms/summaryPage', |
| | | name: 'summaryPage', |
| | | component: () => import('@/views/toCarryOutLegislativeReforms/summaryPage/index'), |
| | | meta: { title: '业务汇总', icon: 'example' } |
| | | } |
| | | const reform = { |
| | | path: 'toCarryOutLegislativeReforms/reform', |
| | | name: 'reform', |
| | | component: () => import('@/views/toCarryOutLegislativeReforms/reform/index'), |
| | | meta: { title: '立行立改', icon: 'example' } |
| | | } |
| | | const delay = { |
| | | path: 'toCarryOutLegislativeReforms/delay', |
| | | name: 'delay', |
| | | component: () => import('@/views/toCarryOutLegislativeReforms/delay/index'), |
| | | meta: { title: '延期申请', icon: 'example' } |
| | | } |
| | | |
| | | // 映射路由,存入对象 |
| | | const ruleMapping = { |
| | |
| | | dailyreport, |
| | | sectionReport, |
| | | Listdata, |
| | | summaryPage, |
| | | reform, |
| | | delay |
| | | // Equidata |
| | | } |
| | | |
| | |
| | | export function routerMenus() { |
| | | const routersMenu = JSON.parse(store.state.user.menus) |
| | | // 路由分两块,左侧列表, 最右侧员工下拉菜单 |
| | | console.log('routersMenu',routersMenu) |
| | | const currentRoutes = router.options.routes |
| | | if (routersMenu.length > 0) { |
| | | routersMenu.forEach(item => { |
| | |
| | | if (temp !== undefined) { |
| | | currentRoutes[currentRoutes.length - 1].children.push(temp) |
| | | } else { |
| | | console.log('存在菜单配置给该用户,但是代码中无该组件') |
| | | console.log('存在菜单配置给该用户,但是代码中无该组件1') |
| | | } |
| | | }) |
| | | } else { |