| | |
| | | path: '/standardLibrary', |
| | | component: Layout, |
| | | redirect: '/standardLibrary/index', |
| | | meta: { title: '标准库', icon: 'el-icon-s-help' }, |
| | | // meta: { title: '标准库', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | name: 'StandardLibrary', |
| | | component: () => import('@/views/standardLibrary/index'), |
| | | meta: { title: '标准库', icon: 'form' } |
| | | meta: { title: '标准库', icon: 'el-icon-s-help' } |
| | | }, |
| | | { |
| | | path: 'specificationDetails/:id', |
| | | name: 'SpecificationDetails', |
| | | // hidden: true, |
| | | component: () => import('@/views/standardLibrary/SpecificationDetails'), |
| | | meta: { title: '产品规格详情', icon: 'form', show: false } |
| | | } |
| | | // { |
| | | // path: 'specificationDetails/:id', |
| | | // name: 'SpecificationDetails', |
| | | // // hidden: true, |
| | | // component: () => import('@/views/standardLibrary/SpecificationDetails'), |
| | | // meta: { title: '产品规格详情', icon: 'form', show: false } |
| | | // } |
| | | ] |
| | | }, |
| | | { |
| | |
| | | component: () => import('@/views/experiment/reportAuditing/index'), |
| | | meta: { title: '报告审核', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'nonConformanceReview', |
| | | name: 'NonConformanceReview', |
| | | component: () => import('@/views/experiment/nonConformanceReview/index'), |
| | | meta: { title: '不合格品反馈', icon: 'tree' } |
| | | }, |
| | | // { |
| | | // path: 'nonConformanceReview', |
| | | // name: 'NonConformanceReview', |
| | | // component: () => import('@/views/experiment/nonConformanceReview/index'), |
| | | // meta: { title: '不合格品反馈', icon: 'tree' } |
| | | // }, |
| | | { |
| | | path: 'nonConformingFeedback', |
| | | name: 'NonConformingFeedback', |
| | |
| | | component: Layout, |
| | | redirect: '/message/toDo', |
| | | name: 'Message', |
| | | meta: { title: '消息待办', icon: 'el-icon-s-help' }, |
| | | // meta: { title: '消息待办', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'toDo', |
| | | name: 'ToDo', |
| | | component: () => import('@/views/message/toDo/index'), |
| | | meta: { title: '我的待办', icon: 'tree' } |
| | | // meta: { title: '消息待办', icon: 'tree' } |
| | | meta: { title: '我的待办', icon: 'el-icon-s-help' }, |
| | | }, |
| | | { |
| | | path: 'message', |
| | | name: 'Message', |
| | | component: () => import('@/views/message/message/index'), |
| | | }, |
| | | // { |
| | | // path: 'message', |
| | | // name: 'Message', |
| | | // component: () => import('@/views/message/message/index'), |
| | | // }, |
| | | ] |
| | | }, |
| | | { |
| | |
| | | component: Layout, |
| | | redirect: '/personal/myInformation', |
| | | name: 'Personal', |
| | | meta: { title: '个人管理', icon: 'el-icon-s-help' }, |
| | | // meta: { title: '个人管理', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'myInformation', |
| | | name: 'MyInformation', |
| | | component: () => import('@/views/personal/myInformation/index'), |
| | | meta: { title: '我的信息', icon: 'table' } |
| | | // meta: { title: '个人管理', icon: 'el-icon-s-help' } |
| | | meta: { title: '我的信息', icon: 'el-icon-s-help' } |
| | | }, |
| | | { |
| | | path: 'myBusiness', |
| | | name: 'MyBusiness', |
| | | component: () => import('@/views/personal/myBusiness/index'), |
| | | meta: { title: '我的企业', icon: 'tree', show: false } |
| | | } |
| | | // { |
| | | // path: 'myBusiness', |
| | | // name: 'MyBusiness', |
| | | // component: () => import('@/views/personal/myBusiness/index'), |
| | | // meta: { title: '我的企业', icon: 'tree', show: false } |
| | | // } |
| | | ] |
| | | }, |
| | | { |
| | |
| | | { |
| | | path: '/404', |
| | | component: () => import('@/views/404'), |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/addCommision', |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/addCommision'), |
| | | hidden: true |
| | | }, |
| | | { |
| | |
| | | function createRouter(Routees) { |
| | | if (JSON.parse(sessionStorage.getItem("user")) != undefined && JSON.parse(sessionStorage.getItem("user")) != null) { |
| | | let sessionLayerId = JSON.parse(sessionStorage.getItem("user")).sessionLayerId |
| | | if (sessionLayerId != 'f5c8bcb7d5a0fd27e2323280f7e98cad') { |
| | | if (sessionLayerId != 'c3284d0f94606de1fd2af172aba15bf3') { |
| | | let role = JSON.parse(sessionStorage.getItem("user")).role |
| | | let menuFather = baseRouter |
| | | const dataMenuFather = fn3(menuFather) |
| | |
| | | Routees = baseRouter |
| | | } |
| | | return new Router({ |
| | | mode: 'history', // require service support |
| | | // mode: 'history', // require service support |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: Routees |
| | | }) |