| | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | { |
| | | // 原材料报检 |
| | | path: '/rawMaterialInspection', |
| | | component: Layout, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | // 原材料下单 |
| | | path: '/materialOrder', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:order'], |
| | | children: [ |
| | | { |
| | | // 铜材料下单 |
| | | path: 'customsInspection', |
| | | component: () => import('@/views/business/materialOrder/customsInspection'), |
| | | name: 'customsInspection', |
| | | meta: { title: '铜材料下单', activeMenu: '/business/materialOrder' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // 用户管理 |
| | | path: '/system/user-auth', |
| | | component: Layout, |
| | | hidden: true, |
| | |
| | | ] |
| | | }, |
| | | { |
| | | // 角色管理 |
| | | path: '/system/role-auth', |
| | | component: Layout, |
| | | hidden: true, |
| | |
| | | ] |
| | | }, |
| | | { |
| | | // 数据字典 |
| | | path: '/system/dict-data', |
| | | component: Layout, |
| | | hidden: true, |
| | |
| | | ] |
| | | }, |
| | | { |
| | | // 数据字典 |
| | | path: '/customer', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['customer:edit'], |
| | | }, |
| | | { |
| | | path: '/monitor/job-log', |
| | | component: Layout, |
| | | hidden: true, |