| | |
| | | meta: { title: '主页', icon: 'el-icon-s-home' } |
| | | }] |
| | | }, |
| | | { |
| | | path: '/addCommision/:viewId', |
| | | hidden: true, |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/addCommision'), |
| | | }, |
| | | { |
| | | path: '/standardLibrary', |
| | | component: Layout, |
| | |
| | | path: 'commissionInspection', |
| | | name: 'CommissionInspection', |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/index'), |
| | | meta: { title: '委托检验', icon: 'table' }, |
| | | children: [ |
| | | { |
| | | path: 'addCommision', |
| | | name: 'AddCommision', |
| | | hidden: true, |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/addCommision'), |
| | | meta: { title: '检测信息', icon: 'table' } |
| | | } |
| | | ] |
| | | meta: { title: '委托检验', icon: 'table' } |
| | | }, |
| | | { |
| | | path: 'reportForInspection', |
| | |
| | | children: [ |
| | | { |
| | | path: 'inspectionApplication', |
| | | name: 'InspectionApplication', |
| | | name: 'inspectionApplication', |
| | | component: () => import('@/views/experiment/inspectionApplication/index'), |
| | | meta: { title: '检验申请', icon: 'tree' } |
| | | meta: { title: '新增检验', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'Viewdetails', |
| | | name: 'Viewdetails', |
| | | hidden: true , |
| | | component: () => import('@/views/experiment/inspectionApplication/Viewdetails/index'), |
| | | meta: { title: '详情页', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'planAssignments', |
| | | name: 'PlanAssignments', |
| | | component: () => import('@/views/experiment/planAssignments/index'), |
| | | component: () => import('@/views/experiment/planAssignments/plan'), |
| | | meta: { title: '检验计划', icon: 'tree' } |
| | | }, |
| | | { |
| | |
| | | name: 'Personnel', |
| | | component: () => import('@/views/laboratory/personnel/index'), |
| | | meta: { title: '人员管理', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'org', |
| | | name: 'Organizational', |
| | | component: () => import('@/views/laboratory/organizational/index.vue'), |
| | | meta: { title: '组织架构', icon: 'tree'} |
| | | }, |
| | | { |
| | | path: 'role', |
| | | name: 'Role', |
| | | component: () => import('@/views/laboratory/role/index'), |
| | | meta: { title: '角色管理', icon: 'tree' } |
| | | } |
| | | ] |
| | | }, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/baseData', |
| | | component: Layout, |
| | | redirect: '/baseData/basicDataMessage', |
| | | meta: { title: '基础数据', icon: 'el-icon-s-tools' }, |
| | | children: [ |
| | | { |
| | | path: '/basicDataMessage', |
| | | name: 'BasicDataMessage', |
| | | component: () => import('@/views/basicData/index'), |
| | | meta: { title: '基础数据', icon: 'el-icon-s-tools' } |
| | | } |
| | | ] |
| | | }, |
| | | // 404 page must be placed at the end !!! |
| | | { path: '*', redirect: '/404', hidden: true } |
| | | ] |
| | |
| | | const createRouter = () => new Router({ |
| | | // mode: 'history', // require service support |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | mode: 'history', |
| | | routes: constantRoutes |
| | | }) |
| | | |