| | |
| | | component: () => import("@/views/login"), |
| | | hidden: true, |
| | | }, |
| | | // 第三方登录页 |
| | | { |
| | | path: "/thirdpartylogin", |
| | | component: () => import("@/views/thirdpartylogin"), |
| | | hidden: true, |
| | | }, |
| | | // 第三方登录页中转 |
| | | { |
| | | path: "/logindemo", |
| | | component: () => import("@/views/logindemo"), |
| | | hidden: true, |
| | | }, |
| | | { |
| | | path: "/register", |
| | | component: () => import("@/views/register"), |
| | |
| | | { |
| | | path: "/401", |
| | | component: () => import("@/views/error/401"), |
| | | hidden: true, |
| | | }, |
| | | { |
| | | path: "/lock", |
| | | component: () => import("@/layout/components/lock/index"), |
| | | hidden: true, |
| | | }, |
| | | { |
| | |
| | | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | // { |
| | | // // 原材料下单 |
| | | // 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: '/inspectionOrder', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:order'], |
| | | children: [ |
| | | { |
| | | // 新增委托单页面 |
| | | path: 'addOrder', |
| | | component: () => import('@/views/business/inspectionOrder/add'), |
| | | name: 'addOrder', |
| | | meta: { title: '新增委托单', activeMenu: '/business/inspectionOrder' } |
| | | }, |
| | | { |
| | | // 查看委托单详情页面 |
| | | path: 'showDetails', |
| | | component: () => import('@/views/business/inspectionOrder/add'), |
| | | name: 'showDetails', |
| | | meta: { title: '委托单详情', activeMenu: '/business/inspectionOrder' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // 检验任务页面 |
| | | path: '/inspectionTask', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:inspection'], |
| | | children: [ |
| | | { |
| | | // 任务检验页面 |
| | | path: 'inspection', |
| | | component: () => import('@/views/business/inspectionTask/Inspection'), |
| | | name: 'Inspection', |
| | | meta: {keepAlive: false, title: '委托单检验', activeMenu: '/business/inspectionTask' } |
| | | }, |
| | | // { |
| | | // // 查看委托单详情页面 |
| | | // path: 'showDetails', |
| | | // component: () => import('@/views/business/inspectionOrder/add'), |
| | | // name: 'showDetails', |
| | | // meta: { title: '委托单详情', activeMenu: '/business/inspectionOrder' } |
| | | // } |
| | | ] |
| | | }, |
| | | { |
| | | // 用户管理 |
| | | path: "/system/user-auth", |