| | |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/addCommision', |
| | | component: () => import('@/views/inspectionManagement/commissionInspection/addCommision'), |
| | | hidden:true |
| | | }, |
| | | { |
| | | path: '/testReport', |
| | | component: () => import('@/views/template_testReport/index'), |
| | | hidden:true |
| | | }, |
| | | { |
| | | path: '/', |
| | | component: Layout, |
| | | redirect: '/home', |
| | |
| | | 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', |
| | |
| | | { |
| | | path: '/message', |
| | | component: Layout, |
| | | redirect: '/message/message', |
| | | redirect: '/message/toDo', |
| | | name: 'Message', |
| | | meta: { title: '消息待办', icon: 'el-icon-s-help' }, |
| | | children: [ |
| | | { |
| | | path: 'toDo', |
| | | name: 'ToDo', |
| | | component: () => import('@/views/message/toDo/index'), |
| | | meta: { title: '我的待办', icon: 'tree' } |
| | | }, |
| | | { |
| | | path: 'message', |
| | | name: 'Message', |
| | | // hidden: true, |
| | | component: () => import('@/views/message/message/index'), |
| | | meta: { title: '我的消息', icon: 'table' } |
| | | // meta: { title: '我的消息', icon: 'table' } |
| | | }, |
| | | { |
| | | path: 'toDo', |
| | | name: 'ToDo', |
| | | component: () => import('@/views/message/toDo/index'), |
| | | meta: { title: '我的待办', icon: 'tree' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | |
| | | ] |
| | | |
| | | const createRouter = () => new Router({ |
| | | // mode: 'history', // require service support |
| | | mode: 'history', |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: constantRoutes |
| | | }) |