spring
2025-04-10 dab59f7624a2fb8d4114bb67b554ff09d91f810c
src/router/index.js
@@ -46,6 +46,18 @@
    component: () => import("@/views/login"),
    hidden: true,
  },
  // 第三方登录页
  {
    path: "/thirdpartylogin",
    component: () => import("@/views/thirdpartylogin"),
    hidden: true,
  },
  // 第三方登录页中转
  {
    path: "/logindemo",
    component: () => import("@/views/logindemo"),
    hidden: true,
  },
  {
    path: "/register",
    component: () => import("@/views/register"),
@@ -62,7 +74,7 @@
    hidden: true,
  },
  {
    path: "",
    path: "/",
    component: Layout,
    redirect: "index",
    children: [
@@ -93,22 +105,22 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  {
    // 原材料下单
    // 原辅材下单
    path: "/materialOrder",
    component: Layout,
    hidden: true,
    permissions: ["business:order"],
    children: [
      {
        // 原材料下单
        // 原辅材下单
        path: "customsInspection",
        component: () =>
          import("@/views/business/materialOrder/customsInspection"),
        name: "CustomsInspection",
        meta: {
          title: "原材料下单详情",
          title: "原辅材下单详情",
          activeMenu: "/business/materialOrder",
          keepAlive: true
          keepAlive: true,
        },
      },
      {
@@ -116,7 +128,11 @@
        path: "copperOrder",
        component: () => import("@/views/business/materialOrder/copperOrder"),
        name: "CopperOrder",
        meta: { title: "铜材料下单", activeMenu: "/business/materialOrder",keepAlive: true },
        meta: {
          title: "铜材料下单",
          activeMenu: "/business/materialOrder",
          keepAlive: true,
        },
      },
    ],
  },
@@ -133,7 +149,11 @@
        component: () =>
          import("@/views/business/productOrder/components/add.vue"),
        name: "Add",
        meta: { title: "成品下单详情", activeMenu: "/business/materialOrder",keepAlive: true },
        meta: {
          title: "成品下单详情",
          activeMenu: "/business/productOrder",
          keepAlive: true,
        },
      },
    ],
  },
@@ -149,7 +169,51 @@
        path: "inspection",
        component: () => import("@/views/business/inspectionTask/inspection"),
        name: "inspection",
        meta: { title: "检验单详情", activeMenu: "/business/inspectionTask", keepAlive: false },
        meta: {
          title: "检验单详情",
          activeMenu: "/business/inspectionTask",
          keepAlive: false,
        },
      },
    ],
  },
  {
    // 可靠性计划
    path: "/reliabilityPlan",
    component: Layout,
    hidden: true,
    permissions: ["business:reliabilityPlan"],
    children: [
      {
        // 计划详情
        path: "plan",
        component: () => import("@/views/business/reliabilityPlan/plan"),
        name: "plan",
        meta: {
          title: "计划详情",
          activeMenu: "/business/reliabilityPlan",
          keepAlive: true,
        },
      },
    ],
  },
  {
    // 标准库变更
    path: "/audit",
    component: Layout,
    hidden: true,
    permissions: ["standard:audit"],
    children: [
      {
        // 变更详情
        path: "auditDetail",
        component: () => import("@/views/standard/standardLibrary/index"),
        name: "auditDetail",
        meta: {
          title: "标准库变更详情",
          activeMenu: "/standard/audit",
          keepAlive: true,
        },
      },
    ],
  },