|
@@ -1,11 +1,11 @@
|
|
|
import Layout from '@/layout'
|
|
|
-import { h, resolveComponent } from 'vue'
|
|
|
+import KeepAliveRouterView from '@/components/KeepAliveRouterView'
|
|
|
+// import { h, resolveComponent } from 'vue'
|
|
|
|
|
|
const ActualTimeRoutes = {
|
|
|
path: '/realTime',
|
|
|
component: Layout,
|
|
|
- name: 'realTime',
|
|
|
- redirect: '/realTime/departure',
|
|
|
+ name: 'RealTime',
|
|
|
//using el svg icon, the elSvgIcon first when at the same time using elSvgIcon and icon
|
|
|
meta: {
|
|
|
title: '综合可视化',
|
|
@@ -17,29 +17,23 @@ const ActualTimeRoutes = {
|
|
|
{
|
|
|
path: '/realTime/departure',
|
|
|
name: 'Departure',
|
|
|
- redirect: '/realTime/departure/airport',
|
|
|
meta: {
|
|
|
title: '国内出港',
|
|
|
breadcrumb: false,
|
|
|
roles: ['view_of_domestic_departure_termina_page'],
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('Departure'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/departure/airport',
|
|
|
name: 'DepartureAirport',
|
|
|
- meta: {
|
|
|
- title: '国内出港航站视图',
|
|
|
- },
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ meta: { title: '国内出港航站视图' },
|
|
|
+ component: KeepAliveRouterView('DepartureAirport'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/departure/airport',
|
|
|
name: 'DepartureAirportView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import('@/views/realTime/departure/airport/index.vue'),
|
|
|
},
|
|
@@ -49,13 +43,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国内出港航班视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('DepartureFlight'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/departure/flight',
|
|
|
name: 'DepartureFlightView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import('@/views/realTime/departure/flight/index.vue'),
|
|
|
},
|
|
@@ -65,13 +58,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国内出港运单视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('DepartureWaybill'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/departure/waybill',
|
|
|
name: 'DepartureWaybillView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import('@/views/realTime/departure/waybill/index.vue'),
|
|
|
},
|
|
@@ -80,6 +72,7 @@ const ActualTimeRoutes = {
|
|
|
name: 'DepartureGoods',
|
|
|
meta: {
|
|
|
title: '国内出港货物视图',
|
|
|
+ keepAlive: true,
|
|
|
},
|
|
|
component: () =>
|
|
|
import('@/views/realTime/departure/goods/index.vue'),
|
|
@@ -95,27 +88,23 @@ const ActualTimeRoutes = {
|
|
|
{
|
|
|
path: '/realTime/internationalDeparture',
|
|
|
name: 'InternationalDeparture',
|
|
|
- redirect: '/realTime/internationalDeparture/airport',
|
|
|
meta: {
|
|
|
title: '国际出港',
|
|
|
roles: ['view_of_international_departure_terminal_page'],
|
|
|
breadcrumb: false,
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalDeparture'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalDeparture/airport',
|
|
|
name: 'InternationalDepartureAirport',
|
|
|
meta: { title: '国际出港航站视图' },
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalDepartureAirport'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalDeparture/airport',
|
|
|
name: 'InternationalDepartureAirportView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import(
|
|
|
'@/views/realTime/internationalDeparture/airport/index.vue'
|
|
@@ -127,13 +116,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国际出港航班视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalDepartureFlight'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalDeparture/flight',
|
|
|
name: 'InternationalDepartureFlightView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import(
|
|
|
'@/views/realTime/internationalDeparture/flight/index.vue'
|
|
@@ -145,13 +133,14 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国际出港运单视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView(
|
|
|
+ 'InternationalDepartureWaybill'
|
|
|
+ ),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalDeparture/waybill',
|
|
|
name: 'InternationalDepartureWaybillView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import(
|
|
|
'@/views/realTime/internationalDeparture/waybill/index.vue'
|
|
@@ -162,6 +151,7 @@ const ActualTimeRoutes = {
|
|
|
name: 'InternationalDepartureGoods',
|
|
|
meta: {
|
|
|
title: '国际出港货物视图',
|
|
|
+ keepAlive: true,
|
|
|
},
|
|
|
component: () =>
|
|
|
import(
|
|
@@ -179,27 +169,23 @@ const ActualTimeRoutes = {
|
|
|
{
|
|
|
path: '/realTime/arrival',
|
|
|
name: 'Arrival',
|
|
|
- redirect: '/realTime/arrival/airport',
|
|
|
meta: {
|
|
|
title: '国内进港',
|
|
|
roles: ['view_of_domestic_inbound_termina_page'],
|
|
|
breadcrumb: false,
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('Arrival'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/arrival/airport',
|
|
|
name: 'ArrivalAirport',
|
|
|
meta: { title: '国内进港航站视图' },
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('ArrivalAirport'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/arrival/airport',
|
|
|
name: 'ArrivalAirportView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import('@/views/realTime/arrival/airport/index.vue'),
|
|
|
},
|
|
@@ -209,13 +195,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国内进港航班视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('ArrivalFlight'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/arrival/flight',
|
|
|
name: 'ArrivalFlightView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import('@/views/realTime/arrival/flight/index.vue'),
|
|
|
},
|
|
@@ -225,13 +210,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国内进港运单视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('ArrivalWaybill'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/arrival/waybill',
|
|
|
name: 'ArrivalWaybillView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import('@/views/realTime/arrival/waybill/index.vue'),
|
|
|
},
|
|
@@ -240,6 +224,7 @@ const ActualTimeRoutes = {
|
|
|
name: 'ArrivalGoods',
|
|
|
meta: {
|
|
|
title: '国内进港货物视图',
|
|
|
+ keepAlive: true,
|
|
|
},
|
|
|
component: () =>
|
|
|
import('@/views/realTime/arrival/goods/index.vue'),
|
|
@@ -255,27 +240,23 @@ const ActualTimeRoutes = {
|
|
|
{
|
|
|
path: '/realTime/internationalArrival',
|
|
|
name: 'InternationalArrival',
|
|
|
- redirect: '/realTime/internationalArrival/airport',
|
|
|
meta: {
|
|
|
title: '国际进港',
|
|
|
roles: ['view_of_international_inbound_terminal_page'],
|
|
|
breadcrumb: false,
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalArrival'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalArrival/airport',
|
|
|
name: 'InternationalArrivalAirport',
|
|
|
meta: { title: '国际进港航站视图' },
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalArrivalAirport'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalArrival/airport',
|
|
|
name: 'InternationalArrivalAirportView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import(
|
|
|
'@/views/realTime/internationalArrival/airport/index.vue'
|
|
@@ -287,13 +268,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国际进港航班视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalArrivalFlight'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalArrival/flight',
|
|
|
name: 'InternationalArrivalFlightView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import(
|
|
|
'@/views/realTime/internationalArrival/flight/index.vue'
|
|
@@ -305,13 +285,12 @@ const ActualTimeRoutes = {
|
|
|
meta: {
|
|
|
title: '国际进港运单视图',
|
|
|
},
|
|
|
- component: {
|
|
|
- render: () => h(resolveComponent('router-view')),
|
|
|
- },
|
|
|
+ component: KeepAliveRouterView('InternationalArrivalWaybill'),
|
|
|
children: [
|
|
|
{
|
|
|
path: '/realTime/internationalArrival/waybill',
|
|
|
name: 'InternationalArrivalWaybillView',
|
|
|
+ meta: { keepAlive: true },
|
|
|
component: () =>
|
|
|
import(
|
|
|
'@/views/realTime/internationalArrival/waybill/index.vue'
|
|
@@ -322,6 +301,7 @@ const ActualTimeRoutes = {
|
|
|
name: 'InternationalArrivalGoods',
|
|
|
meta: {
|
|
|
title: '国际进港货物视图',
|
|
|
+ keepAlive: true,
|
|
|
},
|
|
|
component: () =>
|
|
|
import(
|