chenjun 2 years ago
parent
commit
d54fa46dfa
2 changed files with 60 additions and 62 deletions
  1. 58 12
      src/router/routes/routes-file-five.js
  2. 2 50
      src/router/routes/routes-file-four.js

+ 58 - 12
src/router/routes/routes-file-five.js

@@ -9,6 +9,7 @@ import Layout from '@/layout'
 
 const departureRoutes = {
   path: '/departure',
+  name:'departure',
   component: Layout,
   meta: { roles: ['departure_menu'] },
   children: [
@@ -35,20 +36,11 @@ const departureRoutes = {
           redirect: '/departure',
           // redirect: "/departure/baggageView",
           children: [
-            // {
-            //   path: "/departure/baggageView",
-            //   name: "DepartureBaggageView",
-            //   component: () =>
-            //     import(
-            //       "@/views/baggageManagement/components/departure/baggage"
-            //     ),
-            //   meta: { keepAlive: true, deepth: 2 },
-            // },
             {
               path: '/departure',
               name: 'DepartureTerminalView',
               component: () => import('@/views/baggageManagement/components/departure'),
-              meta: { keepAlive: true, deepth: 2 }
+              meta: { title: '航站视图',keepAlive: true }
             },
             {
               path: '/departure/flightView',
@@ -120,7 +112,7 @@ const arrivalRoutes = {
                   path: '/arrival/baggageView',
                   name: 'ArrivalBaggageView',
                   component: () => import('@/views/baggageManagement/components/arrival/baggage'),
-                  meta: { title: '行李视图', deepth: 4 }
+                  meta: { title: '行李视图', deepth: 4,keepAlive: true }
                 }
               ]
             }
@@ -221,4 +213,58 @@ const transferRoutes = {
   ]
 }
 
-export default [departureRoutes, arrivalRoutes, transferRoutes]
+// 高级查询
+const advanceRoutes = {
+  path: '/',
+  redirect: '/advance',
+  component: Layout,
+  children: [
+    {
+      path: '/advance',
+      component: () => import('@/views/advancedQuery/index.vue'),
+      meta: {
+        title: '高级查询',
+        icon: 'dataParser',
+        imgstyle: 'ic_list_nav_search_default.png',
+        imgstyleup: 'ic_list_nav_search_check.png',
+      },
+      children: [
+        {
+          path: '/',
+          name: 'advanceHome',
+          component: {
+            render (c) {
+              return c('router-view')
+            }
+          },
+          redirect: '/',
+          meta: { title: '高级查询', isPage: 'advance_page',keepAlive:true },
+          children: [
+            {
+              path: '/',
+              component: () => import('@/views/advancedQuery/views/advancedHome.vue'),
+              meta:{
+                title: '高级查询',
+                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]

+ 2 - 50
src/router/routes/routes-file-four.js

@@ -188,54 +188,6 @@ const accountRoutes = {
   ]
 }
 
-// 高级查询
-const advanceRoutes = {
-  path: '/',
-  redirect: '/advance',
-  component: Layout,
-  children: [
-    {
-      path: '/advance',
-      component: () => import('@/views/advancedQuery/index.vue'),
-      meta: {
-        title: '高级查询',
-        icon: 'dataParser',
-        imgstyle: 'ic_list_nav_search_default.png',
-        imgstyleup: 'ic_list_nav_search_check.png'
-      },
-      children: [
-        {
-          path: '/',
-          name: 'advanceHome',
-          component: {
-            render (c) {
-              return c('router-view')
-            }
-          },
-          redirect: '/',
-          meta: { title: '高级查询', isPage: 'advance_page' },
-          children: [
-            {
-              path: '/',
-              component: () => import('@/views/advancedQuery/views/advancedHome.vue')
-            },
-            {
-              path: 'flightView',
-              name: 'advancedFlight',
-              component: () => import('@/views/advancedQuery/views/advancedFlight.vue'),
-              meta: { title: '航班视图' }
-            },
-            {
-              path: 'baggageView',
-              name: 'advancedBag',
-              component: () => import('@/views/advancedQuery/views/advancedBag.vue'),
-              meta: { title: '行李视图' }
-            }
-          ]
-        }
-      ]
-    }
-  ]
-}
 
-export default [authorityRoutes, roleRoutes, accountRoutes, advanceRoutes]
+
+export default [authorityRoutes, roleRoutes, accountRoutes]