| | |
| | | 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"), |
| | |
| | | hidden: true, |
| | | }, |
| | | { |
| | | path: "", |
| | | path: "/", |
| | | component: Layout, |
| | | redirect: "index", |
| | | children: [ |
| | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | 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, |
| | | }, |
| | | }, |
| | | { |
| | |
| | | path: "copperOrder", |
| | | component: () => import("@/views/business/materialOrder/copperOrder"), |
| | | name: "CopperOrder", |
| | | meta: { title: "铜材料下单", activeMenu: "/business/materialOrder",keepAlive: true }, |
| | | meta: { |
| | | title: "铜材料下单", |
| | | activeMenu: "/business/materialOrder", |
| | | keepAlive: true, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | component: () => |
| | | import("@/views/business/productOrder/components/add.vue"), |
| | | name: "Add", |
| | | meta: { title: "成品下单详情", activeMenu: "/business/materialOrder",keepAlive: true }, |
| | | meta: { |
| | | title: "成品下单详情", |
| | | activeMenu: "/business/productOrder", |
| | | keepAlive: true, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | 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, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |