123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- /*
- * @Author: zk
- * @Date: 2022-01-17 10:40:48
- * @LastEditTime: 2022-05-18 09:38:55
- * @LastEditors: your name
- * @Description: 离港路由
- */
- import Layout from '@/layout'
- const departureRoutes = {
- path: '/departure',
- name: 'departure',
- component: Layout,
- meta: { roles: ['departure_menu'] },
- children: [
- {
- path: '/departure',
- component: () => import('@/views/baggageManagement'),
- meta: {
- title: '离港管理',
- imgstyle: 'ic_list_nav_leave_default.png',
- imgstyleup: 'ic_list_nav_leave_check.png'
- },
- children: [
- {
- path: '/departure',
- name: 'DepartureOne',
- component: () => import('@/views/baggageManagement'),
- meta: {
- title: '离港视图',
- // title: "行李视图",
- roles: ['departure_page'],
- keepAlive: true
- },
- children: [
- {
- path: '/departure',
- name: 'DepartureTerminalView',
- component: () => import('@/views/baggageManagement/components/departure'),
- meta: { keepAlive: true }
- },
- {
- path: '/departure/flightView',
- name: 'DepartureParentSem',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '航班视图', keepAlive: true },
- children: [
- {
- path: '/departure/flightView',
- name: 'DepartureFlightView',
- component: () => import('@/views/baggageManagement/components/departure/flight'),
- meta: { keepAlive: true }
- },
- {
- path: '/departure/baggageView',
- name: 'DepartureBaggageView',
- component: () => import('@/views/baggageManagement/components/departure/baggage'),
- meta: { title: '行李视图', keepAlive: true }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- const arrivalRoutes = {
- path: '/arrival',
- name: 'arrival',
- component: Layout,
- meta: { roles: ['inbound_management'] },
- children: [
- {
- path: '/arrival',
- component: () => import('@/views/baggageManagement'),
- meta: {
- title: '进港管理',
- imgstyle: 'ic_list_nav_arrive_default.png',
- imgstyleup: 'ic_list_nav_arrive_check.png'
- },
- children: [
- {
- path: '/arrival',
- name: 'ArrivalOne',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '进港视图', roles: ['inbound_search_page'], keepAlive: true },
- children: [
- {
- path: '/arrival',
- name: 'ArrivalTerminalView',
- component: () => import('@/views/baggageManagement/components/arrival'),
- meta: { keepAlive: true }
- },
- {
- path: '/arrival/flightView',
- name: 'ArrivalFlightTwo',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '航班视图', keepAlive: true },
- children: [
- {
- path: '/arrival/flightView',
- name: 'ArrivalFlightView',
- component: () => import('@/views/baggageManagement/components/arrival/flight'),
- meta: { keepAlive: true }
- },
- {
- path: '/arrival/baggageView',
- name: 'ArrivalBaggageView',
- component: () => import('@/views/baggageManagement/components/arrival/baggage'),
- meta: { title: '行李视图', keepAlive: true }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- const transferRoutes = {
- path: '/transfer',
- component: Layout,
- meta: { roles: ['ti_showTransit'] },
- children: [
- {
- path: '/transfer',
- component: () => import('@/views/baggageManagement'),
- meta: {
- title: '中转管理',
- imgstyle: 'ic_list_nav_transit_default.png',
- imgstyleup: 'ic_list_nav_transit_check.png'
- },
- redirect: '/transfer/arrival',
- children: [
- {
- path: '/transfer/arrival',
- name: 'TransferArrivalOne',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '中转进港', roles: ['transit_inbound_page'], keepAlive: true },
- children: [
- {
- path: '/transfer/arrival',
- name: 'TransferArrivalTerminalView',
- component: () => import('@/views/baggageManagement/components/transferArrival'),
- meta: { keepAlive: true }
- },
- {
- path: '/transfer/arrival/flightView',
- name: 'TransferArrivalTwo',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '航班视图', keepAlive: true },
- children: [
- {
- path: '/transfer/arrival/flightView',
- name: 'TransferArrivalFlightView',
- component: () => import('@/views/baggageManagement/components/transferArrival/flight'),
- meta: { keepAlive: true }
- },
- {
- path: '/transfer/arrival/baggageView',
- name: 'TransferArrivalBaggageView',
- component: () => import('@/views/baggageManagement/components/transferArrival/baggage'),
- meta: { title: '行李视图', keepAlive: true }
- }
- ]
- }
- ]
- },
- {
- path: '/transfer/departure',
- name: 'TransferDepartureOne',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '中转离港', roles: ['transit_departure_page'], keepAlive: true },
- children: [
- {
- path: '/transfer/departure',
- name: 'TransferDepartureTerminalView',
- component: () => import('@/views/baggageManagement/components/transferDeparture'),
- meta: { keepAlive: true }
- },
- {
- path: '/transfer/departure/flightView',
- name: 'TransferDepartureTwo',
- component: () => import('@/views/baggageManagement'),
- meta: { title: '航班视图', keepAlive: true },
- children: [
- {
- path: '/transfer/departure/flightView',
- name: 'TransferDepartureFlightView',
- component: () => import('@/views/baggageManagement/components/transferDeparture/flight'),
- meta: { keepAlive: true }
- },
- {
- path: '/transfer/departure/baggageView',
- name: 'TransferDepartureBaggageView',
- component: () => import('@/views/baggageManagement/components/transferDeparture/baggage'),
- meta: { title: '行李视图', keepAlive: true }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- // 高级查询
- const advanceRoutes = {
- path: '/',
- redirect: '/advance',
- component: Layout,
- children: [
- {
- path: '/advance',
- component: () => import('@/views/advancedQuery/index.vue'),
- meta: {
- title: '高级查询',
- imgstyle: 'ic_list_nav_search_default.png',
- imgstyleup: 'ic_list_nav_search_check.png'
- },
- children: [
- {
- path: '/advance',
- name: 'AdvancedQuery',
- component: () => import('@/views/advancedQuery/index.vue'),
- meta: { title: '高级查询', isPage: 'advance_page', keepAlive: true },
- children: [
- {
- path: '/advance',
- name: 'AdvancedHome',
- component: () => import('@/views/advancedQuery/views/advancedHome.vue'),
- meta: { keepAlive: true }
- },
- {
- path: 'flightView',
- name: 'AdvancedFlight',
- component: () => import('@/views/advancedQuery/views/advancedFlight.vue'),
- meta: { title: '航班视图', keepAlive: true }
- },
- {
- path: 'baggageView',
- name: 'AdvancedBag',
- component: () => import('@/views/advancedQuery/views/advancedBag.vue'),
- meta: { title: '行李视图', keepAlive: true }
- }
- ]
- }
- ]
- }
- ]
- }
- export default [departureRoutes, arrivalRoutes, transferRoutes, advanceRoutes]
|