index.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. const routes = [
  5. {
  6. path: '/',
  7. redirect: '/cargoCharts'
  8. },
  9. {
  10. path: '/mian',
  11. name: 'mian',
  12. // route level code-splitting
  13. // this generates a separate chunk (about.[hash].js) for this route
  14. // which is lazy-loaded when the route is visited.
  15. component: () => import(/* webpackChunkName: "about" */ '../views/securityCheck/index'),
  16. children: [
  17. {
  18. path: '/cargoCharts',
  19. component: () => import('@/views/securityCheck/views/cargoCharts'),
  20. meta: {
  21. title: '航空货物关联统计图'
  22. }
  23. },
  24. {
  25. path: '/cargoRelevanceTable',
  26. component: () => import('@/views/securityCheck/views/cargoRelevanceTable'),
  27. meta: {
  28. title: '航空货物关联统计表'
  29. }
  30. },
  31. {
  32. path: '/cargoStatistics',
  33. component: () => import('@/views/securityCheck/views/cargoStatisticsHome'),
  34. meta: {
  35. title: '航空货物综合统计'
  36. }
  37. },
  38. {
  39. path: '/cargoTable',
  40. component: () => import('@/views/securityCheck/views/cargoTable'),
  41. meta: {
  42. title: '航空货物综合统计表'
  43. }
  44. },
  45. {
  46. path: '/agent',
  47. component: () => import('@/views/securityCheck/views/agentHome'),
  48. meta: {
  49. title: '代理人信息统计'
  50. }
  51. },
  52. {
  53. path: '/agentTable',
  54. component: () => import('@/views/securityCheck/views/agentTable'),
  55. meta: {
  56. title: '代理人信息统计表'
  57. }
  58. },
  59. {
  60. path: '/securityChannel',
  61. component: () => import('@/views/securityCheck/views/securityChannelHome'),
  62. meta: {
  63. title: '安检通道综合效率'
  64. }
  65. },
  66. {
  67. path: '/comprehensive',
  68. component: () => import('@/views/securityCheck/views/comprehensiveHome'),
  69. meta: {
  70. title: '安检通道综合效率日月'
  71. }
  72. },
  73. {
  74. path: '/waybillTable',
  75. component: () => import('@/views/securityCheck/views/waybillTable'),
  76. meta: {
  77. title: '运单管理'
  78. }
  79. }
  80. ]
  81. }
  82. ]
  83. const router = new VueRouter({
  84. mode: 'history',
  85. base: process.env.BASE_URL,
  86. routes
  87. })
  88. export default router