routes-file-five.ts 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import Layout from '@/layout'
  2. const HomeRoutes = {
  3. path: '/dataQuery',
  4. component: Layout,
  5. name: 'dataQuery',
  6. redirect: '/dataQuery/flightQuery',
  7. //using el svg icon, the elSvgIcon first when at the same time using elSvgIcon and icon
  8. meta: {
  9. title: '数据查询',
  10. elSvgIcon: 'Search',
  11. breadcrumb: false,
  12. roles: ['data_query_menu'],
  13. },
  14. children: [
  15. {
  16. path: '/dataQuery/flightQuery',
  17. name: 'FlightQuery',
  18. meta: {
  19. title: '航班查询',
  20. roles: ['flight_query_page'],
  21. },
  22. component: {
  23. render: () => h(resolveComponent('router-view')),
  24. },
  25. children: [
  26. {
  27. path: '',
  28. name: 'FlightQueryView',
  29. meta: { title: '航班查询', breadcrumb: false },
  30. component: () => import('@/views/dataQuery/flight/index.vue'),
  31. },
  32. {
  33. path: '/dataQuery/flightQuery/:viewName',
  34. name: 'FlightQueryFlightView',
  35. meta: { title: '航班视图' },
  36. props: true,
  37. component: () => import('@/views/dataQuery/flight/FlightView.vue'),
  38. hidden: true,
  39. },
  40. ],
  41. },
  42. {
  43. path: '/dataQuery/waybillQuery',
  44. name: 'WaybillQuery',
  45. meta: {
  46. title: '运单查询',
  47. roles: ['waybill_query_page'],
  48. },
  49. component: {
  50. render: () => h(resolveComponent('router-view')),
  51. },
  52. children: [
  53. {
  54. path: '',
  55. name: 'WaybillQueryView',
  56. meta: { title: '运单查询', breadcrumb: false },
  57. component: () => import('@/views/dataQuery/waybill/index.vue'),
  58. },
  59. {
  60. path: '/dataQuery/waybillQuery/:viewName',
  61. name: 'WaybillQueryWaybillView',
  62. meta: { title: '运单视图' },
  63. props: true,
  64. component: () => import('@/views/dataQuery/waybill/WaybillView.vue'),
  65. hidden: true,
  66. },
  67. ],
  68. },
  69. {
  70. path: '/dataQuery/freightQuery',
  71. name: 'FreightQuery',
  72. meta: { title: '货物查询', roles: ['freight_inquiry_page'] },
  73. component: () => import('@/views/dataQuery/freight/index.vue'),
  74. },
  75. {
  76. path: '/dataQuery/messageQuery',
  77. name: 'MessageQuery',
  78. meta: { title: '局方报文' },
  79. component: () => import('@/views/dataQuery/message/index.vue'),
  80. },
  81. ],
  82. }
  83. export default [HomeRoutes]