| | |
| | | |
| | | /* Layout */ |
| | | import Layout from '@/layout' |
| | | import qywechatRouter from './modules/qywechat' |
| | | |
| | | /** |
| | | * Note: 路由配置项 |
| | |
| | | meta: { title: '匿名订单查看', icon: 'eye',anonymous: true } |
| | | }, |
| | | { |
| | | path: '/evaluation', |
| | | component: () => import('@/views/evaluation/index'), |
| | | hidden: true, |
| | | meta: { title: '客户评价', anonymous: true } |
| | | }, |
| | | { |
| | | path: '/evaluation/test', |
| | | component: () => import('@/views/evaluation/test'), |
| | | hidden: true, |
| | | meta: { title: '评价功能测试', anonymous: true } |
| | | }, |
| | | { |
| | | path: '/404', |
| | | component: () => import('@/views/error/404'), |
| | | hidden: true |
| | |
| | | meta: { title: '个人中心', icon: 'user' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/order/detail/:id', |
| | | component: () => import('@/views/system/order/detail'), |
| | | name: 'OrderDetail', |
| | | hidden: true, |
| | | meta: { title: '订单详情页', anonymous: true } |
| | | }, |
| | | { |
| | | path: '/anonymous/test', |
| | | component: () => import('@/views/anonymous/test'), |
| | | hidden: true, |
| | | meta: { title: '匿名访问测试', anonymous: true } |
| | | }, { |
| | | path: '/system/gps/map', |
| | | component: () => import('@/views/system/gps/map'), |
| | | name: 'GpsMap', |
| | | hidden: true, |
| | | meta: { title: '车辆轨迹', showMenu: false, icon: 'map' ,anonymous: true} |
| | | }, |
| | | { |
| | | path: '/payInfoTest', |
| | | component: (resolve) => require(['@/views/system/payInfoTest/index'], resolve), |
| | | hidden: true, |
| | | meta: { title: '支付信息测试', anonymous: true } |
| | | } |
| | | ,{ |
| | | path: '/system/gps/mapNeed', |
| | | component: () => import('@/views/system/gps/mapNeed'), |
| | | name: 'GpsMapNeed', |
| | | meta: { title: '车辆轨迹', icon: 'map' } |
| | | }, |
| | | |
| | | { |
| | | path: '/h5/task_create', |
| | | component: () => import('@/views/task/h5/create'), |
| | | hidden: false, |
| | | name: 'H5TaskCreate', |
| | | meta: { title: '创建任务' } |
| | | } |
| | | ] |
| | | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | qywechatRouter, |
| | | { |
| | | path: '/system/user-auth', |
| | | component: Layout, |
| | |
| | | meta: { title: '修改生成配置', activeMenu: '/tool/gen' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/task/general-detail', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['task:general:query'], |
| | | children: [ |
| | | { |
| | | path: 'index/:taskId(\\d+)', |
| | | component: () => import('@/views/task/general/detail'), |
| | | name: 'TaskDetail', |
| | | meta: { title: '任务详情', activeMenu: '/task/general' } |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | |
| | |
| | | } |
| | | |
| | | export default new Router({ |
| | | mode: 'history', // 去掉url中的# |
| | | mode: 'history', // 使用history模式,URL更美观 |
| | | scrollBehavior: () => ({ y: 0 }), |
| | | routes: constantRoutes |
| | | }) |