chenrui  2 anni fa
parent
commit
a144183f24

+ 9 - 7
src/router/routes/routes-file-three.ts

@@ -53,13 +53,15 @@ const HomeRoutes = {
       name: "ModelMaintenance",
       meta: { title: "机型维护", elSvgIcon: "Fold", icon: "table" },
       component: () => import("@/views/BasicsData/modelMaintenance/index.vue"),
-    },
-    {
-      path: "/BasicsData/shippingSpace",
-      name: "ShippingSpace",
-      hidden: true,
-      meta: { title: "舱位管理", elSvgIcon: "Fold", icon: "table" },
-      component: () => import("@/views/BasicsData/shippingSpace/index.vue"),
+      children: [
+        {
+          path: "/BasicsData/modelMaintenance/shippingSpace",
+          name: "ShippingSpace",
+          hidden: true,
+          meta: { title: "舱位管理", elSvgIcon: "Fold", icon: "table" },
+          component: () => import("@/views/BasicsData/shippingSpace/index.vue"),
+        },
+      ],
     },
     {
       path: "/BasicsData/containerMaintenance",

+ 1 - 1
src/views/BasicsData/modelMaintenance/index.vue

@@ -178,7 +178,7 @@ const btnClick = (row, index, param) => {
     tableForm.modelDesc = index.modelDesc;
   } else if (param === 4) {
     router.push({
-      path: "/BasicsData/shippingSpace",
+      path: "/BasicsData/modelMaintenance/shippingSpace",
       query: {
         modelID: index.modelID,
       },