From dab59f7624a2fb8d4114bb67b554ff09d91f810c Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 10 四月 2025 13:07:36 +0800 Subject: [PATCH] Merge branch 'radio-frequency-cable' of http://114.132.189.42:9002/r/lims-ruoyi-before into radio-frequency-cable --- src/router/index.js | 115 ++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 76 insertions(+), 39 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index f6b55c0..a7cda42 100644 --- a/src/router/index.js +++ b/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,29 +105,34 @@ // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇 export const dynamicRoutes = [ { - // 鍘熸潗鏂欎笅鍗� + // 鍘熻緟鏉愪笅鍗� path: "/materialOrder", component: Layout, hidden: true, permissions: ["business:order"], children: [ { - // 鍘熸潗鏂欎笅鍗� + // 鍘熻緟鏉愪笅鍗� path: "customsInspection", component: () => import("@/views/business/materialOrder/customsInspection"), - name: "customsInspection", + name: "CustomsInspection", meta: { - title: "鍘熸潗鏂欎笅鍗曡鎯�", + title: "鍘熻緟鏉愪笅鍗曡鎯�", activeMenu: "/business/materialOrder", + keepAlive: true, }, }, { // 閾滄潗鏂欎笅鍗� path: "copperOrder", component: () => import("@/views/business/materialOrder/copperOrder"), - name: "copperOrder", - meta: { title: "閾滄潗鏂欎笅鍗�", activeMenu: "/business/materialOrder" }, + name: "CopperOrder", + meta: { + title: "閾滄潗鏂欎笅鍗�", + activeMenu: "/business/materialOrder", + keepAlive: true, + }, }, ], }, @@ -124,15 +141,19 @@ path: "/productOrder", component: Layout, hidden: true, - permissions: ["productOrder:order"], + permissions: ["business:productOrder"], children: [ { // 鎴愬搧涓嬪崟璇︽儏 path: "add", component: () => import("@/views/business/productOrder/components/add.vue"), - name: "add", - meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/materialOrder" }, + name: "Add", + meta: { + title: "鎴愬搧涓嬪崟璇︽儏", + activeMenu: "/business/productOrder", + keepAlive: true, + }, }, ], }, @@ -148,7 +169,51 @@ path: "inspection", component: () => import("@/views/business/inspectionTask/inspection"), name: "inspection", - meta: { title: "妫�楠屽崟璇︽儏", activeMenu: "/business/inspectionTask" }, + 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, + }, }, ], }, @@ -203,34 +268,6 @@ component: Layout, hidden: true, permissions: ["customer:edit"], - }, - { - path: "/monitor/job-log", - component: Layout, - hidden: true, - permissions: ["monitor:job:list"], - children: [ - { - path: "index/:jobId(\\d+)", - component: () => import("@/views/monitor/job/log"), - name: "JobLog", - meta: { title: "璋冨害鏃ュ織", activeMenu: "/monitor/job" }, - }, - ], - }, - { - path: "/tool/gen-edit", - component: Layout, - hidden: true, - permissions: ["tool:gen:edit"], - children: [ - { - path: "index/:tableId(\\d+)", - component: () => import("@/views/tool/gen/editTable"), - name: "GenEdit", - meta: { title: "淇敼鐢熸垚閰嶇疆", activeMenu: "/tool/gen" }, - }, - ], }, ]; -- Gitblit v1.9.3