| | |
| | | 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: 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 |
| | | }, |
| | | { |
| | |
| | | Routees = baseRouter |
| | | } |
| | | return new Router({ |
| | | mode: 'history', // require service support |
| | | // mode: 'history', // require service support |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: Routees |
| | | }) |