From c85d2427b749c5e7236f0474f9215e5936cdfa7c Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期三, 21 五月 2025 17:08:21 +0800
Subject: [PATCH] 原始检验记录

---
 laboratory/src/router/index.js |   68 ++++++++++++++++++++++++----------
 1 files changed, 48 insertions(+), 20 deletions(-)

diff --git a/laboratory/src/router/index.js b/laboratory/src/router/index.js
index d68bd14..4501ef4 100644
--- a/laboratory/src/router/index.js
+++ b/laboratory/src/router/index.js
@@ -23,8 +23,7 @@
     }
  */
 
-const routes = [
-    {
+const routes = [{
         path: "/",
         redirect: "/login",
     },
@@ -43,8 +42,7 @@
             title: "系统管理",
         },
         component: Layouts,
-        children: [
-            {
+        children: [{
                 path: "user",
                 name: "User",
                 meta: {
@@ -102,8 +100,7 @@
             title: "项目组管理",
         },
         component: Layouts,
-        children: [
-            {
+        children: [{
                 path: "list",
                 name: "ProjectList",
                 meta: {
@@ -147,8 +144,7 @@
         meta: {
             title: "实验室数据管理",
         },
-        children: [
-            {
+        children: [{
                 path: "approvalPlan",
                 meta: {
                     title: "项目课题方案审批",
@@ -232,8 +228,7 @@
                     // keepAlive: true,
                 },
                 component: Parent,
-                children: [
-                    {
+                children: [{
                         path: "manage",
                         meta: {
                             title: "样品管理",
@@ -376,8 +371,7 @@
         meta: {
             title: "专业报告库审批",
         },
-        children: [
-            {
+        children: [{
                 path: "feasibilityStudy",
                 meta: {
                     title: "可研报告库",
@@ -460,7 +454,7 @@
                 component: () => import("../views/reportLibrary/processDevelopment/add.vue"),
             },
 
-            
+
 
             {
                 path: "verificationRelease",
@@ -471,12 +465,48 @@
                 component: () => import("../views/reportLibrary/verificationRelease/index.vue"),
             },
             {
+                path: "addVerificationRelease",
+                meta: {
+                    title: "新增验证与发布",
+                    hide: true,
+                    keepAlive: true,
+                },
+                component: () => import("../views/reportLibrary/verificationRelease/add.vue"),
+            },
+            {
+                path: "editVerificationRelease",
+                meta: {
+                    title: "新增验证与发布",
+                    hide: true,
+                    keepAlive: true,
+                },
+                component: () => import("../views/reportLibrary/verificationRelease/add.vue"),
+            },
+            {
                 path: "projectProposalLibrary",
                 meta: {
                     title: "立项报告库",
                     keepAlive: true,
                 },
                 component: () => import("../views/reportLibrary/projectProposalLibrary/index.vue"),
+            },
+            {
+                path: "addProjectProposalLibrary",
+                meta: {
+                    title: "新增立项报告",
+                    hide: true,
+                    keepAlive: true,
+                },
+                component: () => import("../views/reportLibrary/projectProposalLibrary/add.vue"),
+            },
+            {
+                path: "editProjectProposalLibrary",
+                meta: {
+                    title: "编辑立项报告",
+                    hide: true,
+                    keepAlive: true,
+                },
+                component: () => import("../views/reportLibrary/projectProposalLibrary/add.vue"),
             },
         ],
     },
@@ -486,8 +516,7 @@
         meta: {
             title: "化验师QA专题报告",
         },
-        children: [
-            {
+        children: [{
                 path: "projectTesting",
                 meta: {
                     title: "项目检测项、检验包列表",
@@ -572,8 +601,7 @@
         meta: {
             title: "工作交付评定",
         },
-        children: [
-            {
+        children: [{
                 path: "projectTeamIntegral",
                 meta: {
                     title: "项目组总积分",
@@ -741,7 +769,7 @@
     // 排除登录页的校验
     if (to.path === "/login") {
         if (sessionStorage.getItem('token')) {
-            next('/system');  // 已登录状态访问登录页时重定向到系统首页
+            next('/system'); // 已登录状态访问登录页时重定向到系统首页
             return;
         }
         next();
@@ -751,7 +779,7 @@
     // 登录状态校验
     const isAuthenticated = sessionStorage.getItem('token');
     if (!isAuthenticated) {
-        next('/login');  // 未登录用户重定向到登录页
+        next('/login'); // 未登录用户重定向到登录页
         return;
     }
 
@@ -795,4 +823,4 @@
     next()
 });
 
-export default router;
+export default router;
\ No newline at end of file

--
Gitblit v1.7.1