routes-file-five.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. /*
  2. * @Author: zk
  3. * @Date: 2022-01-17 10:40:48
  4. * @LastEditTime: 2022-05-18 09:38:55
  5. * @LastEditors: your name
  6. * @Description: 离港路由
  7. */
  8. import Layout from '@/layout'
  9. const departureRoutes = {
  10. path: '/departure',
  11. name: 'departure',
  12. component: Layout,
  13. meta: { roles: ['departure_menu'] },
  14. children: [
  15. {
  16. path: '/departure',
  17. component: () => import('@/views/baggageManagement'),
  18. meta: {
  19. title: '离港管理',
  20. imgstyle: 'ic_list_nav_leave_default.png',
  21. imgstyleup: 'ic_list_nav_leave_check.png'
  22. },
  23. children: [
  24. {
  25. path: '/departure',
  26. name: 'DepartureOne',
  27. component: () => import('@/views/baggageManagement'),
  28. meta: {
  29. title: '离港视图',
  30. // title: "行李视图",
  31. roles: ['departure_page'],
  32. keepAlive: true
  33. },
  34. children: [
  35. {
  36. path: '/departure',
  37. name: 'DepartureTerminalView',
  38. component: () => import('@/views/baggageManagement/components/departure'),
  39. meta: { keepAlive: true }
  40. },
  41. {
  42. path: '/departure/flightView',
  43. name: 'DepartureParentSem',
  44. component: () => import('@/views/baggageManagement'),
  45. meta: { title: '航班视图', keepAlive: true },
  46. children: [
  47. {
  48. path: '/departure/flightView',
  49. name: 'DepartureFlightView',
  50. component: () => import('@/views/baggageManagement/components/departure/flight'),
  51. meta: { keepAlive: true }
  52. },
  53. {
  54. path: '/departure/baggageView',
  55. name: 'DepartureBaggageView',
  56. component: () => import('@/views/baggageManagement/components/departure/baggage'),
  57. meta: { title: '行李视图', keepAlive: true }
  58. }
  59. ]
  60. }
  61. ]
  62. }
  63. ]
  64. }
  65. ]
  66. }
  67. const arrivalRoutes = {
  68. path: '/arrival',
  69. name: 'arrival',
  70. component: Layout,
  71. meta: { roles: ['inbound_management'] },
  72. children: [
  73. {
  74. path: '/arrival',
  75. component: () => import('@/views/baggageManagement'),
  76. meta: {
  77. title: '进港管理',
  78. imgstyle: 'ic_list_nav_arrive_default.png',
  79. imgstyleup: 'ic_list_nav_arrive_check.png'
  80. },
  81. children: [
  82. {
  83. path: '/arrival',
  84. name: 'ArrivalOne',
  85. component: () => import('@/views/baggageManagement'),
  86. meta: { title: '进港视图', roles: ['inbound_search_page'], keepAlive: true },
  87. children: [
  88. {
  89. path: '/arrival',
  90. name: 'ArrivalTerminalView',
  91. component: () => import('@/views/baggageManagement/components/arrival'),
  92. meta: { keepAlive: true }
  93. },
  94. {
  95. path: '/arrival/flightView',
  96. name: 'ArrivalFlightTwo',
  97. component: () => import('@/views/baggageManagement'),
  98. meta: { title: '航班视图', keepAlive: true },
  99. children: [
  100. {
  101. path: '/arrival/flightView',
  102. name: 'ArrivalFlightView',
  103. component: () => import('@/views/baggageManagement/components/arrival/flight'),
  104. meta: { keepAlive: true }
  105. },
  106. {
  107. path: '/arrival/baggageView',
  108. name: 'ArrivalBaggageView',
  109. component: () => import('@/views/baggageManagement/components/arrival/baggage'),
  110. meta: { title: '行李视图', keepAlive: true }
  111. }
  112. ]
  113. }
  114. ]
  115. }
  116. ]
  117. }
  118. ]
  119. }
  120. const transferRoutes = {
  121. path: '/transfer',
  122. component: Layout,
  123. meta: { roles: ['ti_showTransit'] },
  124. children: [
  125. {
  126. path: '/transfer',
  127. component: () => import('@/views/baggageManagement'),
  128. meta: {
  129. title: '中转管理',
  130. imgstyle: 'ic_list_nav_transit_default.png',
  131. imgstyleup: 'ic_list_nav_transit_check.png'
  132. },
  133. redirect: '/transfer/arrival',
  134. children: [
  135. {
  136. path: '/transfer/arrival',
  137. name: 'TransferArrivalOne',
  138. component: () => import('@/views/baggageManagement'),
  139. meta: { title: '中转进港', roles: ['transit_inbound_page'], keepAlive: true },
  140. children: [
  141. {
  142. path: '/transfer/arrival',
  143. name: 'TransferArrivalTerminalView',
  144. component: () => import('@/views/baggageManagement/components/transferArrival'),
  145. meta: { keepAlive: true }
  146. },
  147. {
  148. path: '/transfer/arrival/flightView',
  149. name: 'TransferArrivalTwo',
  150. component: () => import('@/views/baggageManagement'),
  151. meta: { title: '航班视图', keepAlive: true },
  152. children: [
  153. {
  154. path: '/transfer/arrival/flightView',
  155. name: 'TransferArrivalFlightView',
  156. component: () => import('@/views/baggageManagement/components/transferArrival/flight'),
  157. meta: { keepAlive: true }
  158. },
  159. {
  160. path: '/transfer/arrival/baggageView',
  161. name: 'TransferArrivalBaggageView',
  162. component: () => import('@/views/baggageManagement/components/transferArrival/baggage'),
  163. meta: { title: '行李视图', keepAlive: true }
  164. }
  165. ]
  166. }
  167. ]
  168. },
  169. {
  170. path: '/transfer/departure',
  171. name: 'TransferDepartureOne',
  172. component: () => import('@/views/baggageManagement'),
  173. meta: { title: '中转离港', roles: ['transit_departure_page'], keepAlive: true },
  174. children: [
  175. {
  176. path: '/transfer/departure',
  177. name: 'TransferDepartureTerminalView',
  178. component: () => import('@/views/baggageManagement/components/transferDeparture'),
  179. meta: { keepAlive: true }
  180. },
  181. {
  182. path: '/transfer/departure/flightView',
  183. name: 'TransferDepartureTwo',
  184. component: () => import('@/views/baggageManagement'),
  185. meta: { title: '航班视图', keepAlive: true },
  186. children: [
  187. {
  188. path: '/transfer/departure/flightView',
  189. name: 'TransferDepartureFlightView',
  190. component: () => import('@/views/baggageManagement/components/transferDeparture/flight'),
  191. meta: { keepAlive: true }
  192. },
  193. {
  194. path: '/transfer/departure/baggageView',
  195. name: 'TransferDepartureBaggageView',
  196. component: () => import('@/views/baggageManagement/components/transferDeparture/baggage'),
  197. meta: { title: '行李视图', keepAlive: true }
  198. }
  199. ]
  200. }
  201. ]
  202. }
  203. ]
  204. }
  205. ]
  206. }
  207. // 高级查询
  208. const advanceRoutes = {
  209. path: '/',
  210. redirect: '/advance',
  211. component: Layout,
  212. children: [
  213. {
  214. path: '/advance',
  215. component: () => import('@/views/advancedQuery/index.vue'),
  216. meta: {
  217. title: '高级查询',
  218. imgstyle: 'ic_list_nav_search_default.png',
  219. imgstyleup: 'ic_list_nav_search_check.png'
  220. },
  221. children: [
  222. {
  223. path: '/advance',
  224. name: 'AdvancedQuery',
  225. component: () => import('@/views/advancedQuery/index.vue'),
  226. meta: { title: '高级查询', isPage: 'advance_page', keepAlive: true },
  227. children: [
  228. {
  229. path: '/advance',
  230. name: 'AdvancedHome',
  231. component: () => import('@/views/advancedQuery/views/advancedHome.vue'),
  232. meta: { keepAlive: true }
  233. },
  234. {
  235. path: 'flightView',
  236. name: 'AdvancedFlight',
  237. component: () => import('@/views/advancedQuery/views/advancedFlight.vue'),
  238. meta: { title: '航班视图', keepAlive: true }
  239. },
  240. {
  241. path: 'baggageView',
  242. name: 'AdvancedBag',
  243. component: () => import('@/views/advancedQuery/views/advancedBag.vue'),
  244. meta: { title: '行李视图', keepAlive: true }
  245. }
  246. ]
  247. }
  248. ]
  249. }
  250. ]
  251. }
  252. export default [departureRoutes, arrivalRoutes, transferRoutes, advanceRoutes]