From fe7095395f8454bdf5a817f7d5c612af5b83fbd9 Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期二, 04 十一月 2025 13:05:38 +0800
Subject: [PATCH] 卧式理片模块新增报警,中空理片笼、钢化理片笼-理片笼详情改造

---
 UI-Project/src/router/index.js |  407 ++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 325 insertions(+), 82 deletions(-)

diff --git a/UI-Project/src/router/index.js b/UI-Project/src/router/index.js
index d790e4b..2424e14 100644
--- a/UI-Project/src/router/index.js
+++ b/UI-Project/src/router/index.js
@@ -3,7 +3,6 @@
 // import User from '../views/sys/User.vue'
 // import Role from '../views/sys/Role.vue'
 // import Menu from '../views/sys/Menu.vue'
-
 const router = createRouter({
   history: createWebHashHistory(),
   routes: [
@@ -19,12 +18,15 @@
       component: () => import('../views/LoginView.vue')
     },
     {
+      path: '/new-page', // 鏂板鐨勬棤闇�鐧诲綍鐨勯〉闈�  
+      name: 'newPage',  
+      component: () => import('../views/NewPage.vue')
+    },
+    {
       path: '/main',
       name: 'main',
       component: () => import('../layout/MainErpView.vue'),
       children:[
-        
-        
         {
           path: 'Temperedlayout',
           name: 'Temperedlayout',
@@ -37,57 +39,44 @@
             }
          ]
         },
-      
-/*----------- 鐢ㄦ埛鍒楄〃 ----------------*/
-// {
-//   path: 'User',
-//   name: 'User',
-//   component: () => import('../views/User/userlist.vue'),
-//   children:[
-//     {
-//       path: '/User/userlist',
-//       name: 'userlist',
-//       component: () => import('../views/User/userlist.vue')
-//     },
-//   ]
-//   },
-  
-/*----------- 鏉冮檺鍒楄〃 ----------------*/
-// {
-//   path: 'Permissions',
-//   name: 'Permissions',
-//   component: () => import('../views/Permissions/permissionslist.vue'),
-//   children:[
-//     {
-//       path: '/Permissions/permissionslist',
-//       name: 'permissionslist',
-//       component: () => import('../views/Permissions/permissionslist.vue')
-//     },
-//   ]
-//   },
         /*----------- 涓婄墖鏈� ----------------*/
       {
         path: 'Returns',
-        name: 'Returns',
-        component: () => import('../views/Returns/returns.vue'),
+        name: 'return',
+        component: () => import('../views/Returns/return.vue'),
         children:[
           {
-            path: '/Returns/returns',
-            name: 'returns',
-            component: () => import('../views/Returns/returns.vue')
+            path: '/Returns/upreturns',
+            name: 'upreturns',
+            component: () => import('../views/Returns/upreturns.vue')
           },
+          {
+            path: '/Returns/upreturns2',
+            name: 'upreturns2',
+            component: () => import('../views/Returns/upreturns2.vue')
+          }
         ]
       },
       /*----------- 鎺扮墖/璇嗗埆 ----------------*/
     {
       path: 'Identify',
-      name: 'Identify',
-      component: () => import('../views/Identify/identify.vue'),
-      children:[
+      name: 'ident',
+      component: () => import('../views/Identify/ident.vue'),
+      children: [
         {
           path: '/Identify/identify',
           name: 'identify',
           component: () => import('../views/Identify/identify.vue')
+        },
+        {
+          path: '/Identify/identifwu',
+          name: 'identifwu',
+          component: () => import('../views/Identify/identifwu.vue')
+        },
+        {
+          path: '/Identify/identifwutwo',
+          name: 'identifwutwo',
+          component: () => import('../views/Identify/identifwutwo.vue')
         },
       ]
     },
@@ -125,6 +114,11 @@
       name: 'stockBasicDatatwo',
       component: () => import('../views/StockBasicData/stockBasicDatatwo.vue')
     },
+    {
+      path: '/StockBasicData/stockBasicyiwu',
+      name: 'stockBasicyiwu',
+      component: () => import('../views/StockBasicData/stockBasicyiwu.vue')
+    },
   ]
 },
 /*----------- 澶х悊鐗囩 ----------------*/
@@ -138,7 +132,18 @@
     name: 'slicecage',
     component: () => import('../views/Slicecage/slicecage.vue')
   },
+   {
+    path: '/Slicecage/slicecageTwo',
+    name: 'slicecageTwo',
+    component: () => import('../views/Slicecage/slicecageTwo.vue')
+  },
 ]
+
+// {
+//   path: '/slicecagehistory',  
+//   name: 'slicecagehistory',  
+//   component: () => import('../views/slicecagehistory.vue')
+// },
 },
 /*----------- 閽㈠寲 ----------------*/
 {
@@ -158,48 +163,25 @@
   },
 ]
 },
-          /*----------- 涓嬬墖鍙� ----------------*/
-        {
-          path: 'UnLoadGlass',
-          name: 'UnLoadGlass',
-          component: () => import('../views/UnLoadGlass/UnLoadGlass.vue'),
-          children:[
-            {
-              path: '/UnLoadGlass/loadmachinerack',
-              name: 'loadmachinerack',
-              component: () => import('../views/UnLoadGlass/loadmachinerack.vue')
-            },
-            {
-              path: '/UnLoadGlass/loadmachineracktwo',
-              name: 'loadmachineracktwo',
-              component: () => import('../views/UnLoadGlass/loadmachineracktwo.vue')
-            },
-            {
-              path: '/UnLoadGlass/Landingindication',
-              name: 'Landingindication',
-              component: () => import('../views/UnLoadGlass/Landingindication.vue')
-            },
-            {
-              path: '/UnLoadGlass/Landingindicationtwo',
-              name: 'Landingindicationtwo',
-              component: () => import('../views/UnLoadGlass/Landingindicationtwo.vue')
-            }
-          ]
-        },
-
-        {
+         /*----------- 浠撳偍涓績 ----------------*/
+         {
           path: 'GlassStorage',
           name: 'GlassStorage',
-          component: () => import('../views/GlassStorage/MaterialRackManagement.vue'),
+          component: () => import('../views/GlassStorage/GlassStorage.vue'),
           children:[
             {
               path: '/GlassStorage/MaterialRackManagement',
               name: 'MaterialRackManagement',
               component: () => import('../views/GlassStorage/MaterialRackManagement.vue')
+            },
+            {
+              path: '/GlassStorage/rawfilmstorage',
+              name: 'rawfilmstorage',
+              component: () => import('../views/GlassStorage/rawfilmstorage.vue')
             }
           ]
-         },
-
+        },
+ 
          /*----------- 鍙鍖栫郴缁� ----------------*/
          {
           path: 'Visualization',
@@ -243,10 +225,20 @@
       path: '/User/permissions',
       name: 'permissions',
       component: () => import('../views/User/permissions.vue')
+    },
+    {
+      path: '/User/userpageNo',
+      name: 'userpageNo',
+      component: () => import('../views/User/userpageNo.vue')
+    },
+    {
+      path: '/User/alarmLog',
+      name: 'alarmLog',
+      component: () => import('../views/User/alarmLog.vue')
     }
   ]
  },
-  /*----------- 澶у睆鏄剧ず ----------------*/
+  /*----------- 鏄剧ず ----------------*/
   {
     path: 'largescreen',
     name: 'largescreen',
@@ -264,7 +256,7 @@
     path: 'reportWork',
     name: 'reportWork',
     component: () => import('../views/ReportWork/reportWork.vue'),
-    children:[
+    children: [
       {
         path: '/ReportWork/reportWork',
         name: 'reportWork',
@@ -272,6 +264,82 @@
       },
     ]
   },
+  
+  /*----------- 澶у睆鏄剧ず ----------------*/
+  {
+    path: 'largescreendisplay',
+    name: 'screendisplay',
+    component: () => import('../views/largescreendisplay/screendisplay.vue'),
+    children: [
+      {
+        path: '/largescreendisplay/screendisplay',
+        name: 'screendisplay',
+        component: () => import('../views/largescreendisplay/screendisplay.vue')
+      },
+    ]
+  },
+  
+  /*----------- 宸ョ▼鎺掍骇 ----------------*/
+  {
+    path: 'engineerScheduling',
+    name: 'engineerScheduling',
+    component: () => import('../views/EngineerScheduling/engineerScheduling.vue'),
+    children: [
+      {
+        path: '/EngineerScheduling/engineerScheduling',
+        name: 'engineerScheduling',
+        component: () => import('../views/EngineerScheduling/engineerScheduling.vue')
+      },
+    ]
+  },
+        /*----------- 涓┖ ----------------*/
+        {
+          path: 'hollow',
+          name: 'hol',
+          component: () => import('../views/hollow/hol.vue'),
+          children: [
+            {
+              path: '/hollow/hollowequipment',
+              name: 'hollowequipment',
+              component: () => import('../views/hollow/hollowequipment.vue')
+            },
+            {
+              path: '/hollow/hollowequipmenttwo',
+              name: 'hollowequipmenttwo',
+              component: () => import('../views/hollow/hollowequipmenttwo.vue')
+            },
+            {
+              path: '/hollow/hollowequipmenthree',
+              name: 'hollowequipmenthree',
+              component: () => import('../views/hollow/hollowequipmenthree.vue')
+            },
+            {
+              path: '/hollow/hollowslicecage',
+              name: 'hollowslicecage',
+              component: () => import('../views/hollow/hollowslicecage.vue')
+            },
+            {
+              path: '/hollow/hollowaluminum',
+              name: 'hollowaluminum',
+              component: () => import('../views/hollow/hollowaluminum.vue')
+            },
+            {
+              path: '/hollow/hollowaluminumtwo',
+              name: 'hollowaluminumtwo',
+              component: () => import('../views/hollow/hollowaluminumtwo.vue')
+            },
+            {
+              path: '/hollow/hollowaluminumthree',
+              name: 'hollowaluminumthree',
+              component: () => import('../views/hollow/hollowaluminumthree.vue')
+            },
+            {
+              path: '/hollow/hollowsitwo',
+              name: 'hollowsitwo',
+              component: () => import('../views/hollow/hollowsitwo.vue')
+            },
+          ]
+        },
         /*----------- 绠$悊绯荤粺 ----------------*/
         {
           path: 'sys',
@@ -295,19 +363,194 @@
             // },
           ]
         },
-        {
-          path: '',
-          redirect: '/returns/returns'
-        }
+        // {
+        //   path: '',
+        //   redirect: '/hollow/hollowslicecage'
+        // }
       ]
     },
     {
       path: '/register',
       name: 'register',
       component: () => import('../views/RegisterView.vue')
-    }
-    
+    },
+    {
+       path: '/slicecagehistory',
+        name: 'slicecagehistory',
+        component: () => import('../views/Slicecage/slicecagehistory.vue'),
+        children: [
+          {
+           path: '/Slicecage/slicecagehistory',
+           name: 'slicecagehistory',
+           component: () => import('../views/Slicecage/slicecagehistory.vue')
+          },
+        ]
+       },
+       {
+          path: '/hellowslicecagehistory',
+           name: 'hellowslicecagehistory',
+           component: () => import('../views/hollow/hellowslicecagehistory.vue'),
+           children: [
+             {
+              path: '/hollow/hellowslicecagehistory',
+              name: 'hellowslicecagehistory',
+              component: () => import('../views/hollow/hellowslicecagehistory.vue')
+             },
+           ]
+          },
+          {
+             path: '/hellowquiphistory',
+              name: 'hellowquiphistory',
+              component: () => import('../views/hollow/hellowquiphistory.vue'),
+              children: [
+                {
+                 path: '/hollow/hellowquiphistory',
+                 name: 'hellowquiphistory',
+                 component: () => import('../views/hollow/hellowquiphistory.vue')
+                },
+              ]
+             },
+             {
+                path: '/hellowquiptwohistory',
+                 name: 'hellowquiptwohistory',
+                 component: () => import('../views/hollow/hellowquiptwohistory.vue'),
+                 children: [
+                   {
+                    path: '/hollow/hellowquiptwohistory',
+                    name: 'hellowquiptwohistory',
+                    component: () => import('../views/hollow/hellowquiptwohistory.vue')
+                   },
+                 ]
+                },
+                {
+                   path: '/hellowquipthreehistory',
+                    name: 'hellowquipthreehistory',
+                    component: () => import('../views/hollow/hellowquipthreehistory.vue'),
+                    children: [
+                      {
+                       path: '/hollow/hellowquipthreehistory',
+                       name: 'hellowquipthreehistory',
+                       component: () => import('../views/hollow/hellowquipthreehistory.vue')
+                      },
+                    ]
+                   },
+          {
+             path: '/cachingbeforehistory',
+              name: 'cachingbeforehistory',
+              component: () => import('../views/Caching/cachingbeforehistory.vue'),
+              children: [
+                {
+                 path: '/Caching/cachingbeforehistory',
+                 name: 'cachingbeforehistory',
+                 component: () => import('../views/Caching/cachingbeforehistory.vue')
+                },
+              ]
+             },
+             {
+              path: '/cachingunhistory',
+               name: 'cachingunhistory',
+               component: () => import('../views/Caching/cachingunhistory.vue'),
+               children: [
+                 {
+                  path: '/Caching/cachingunhistory',
+                  name: 'cachingunhistory',
+                  component: () => import('../views/Caching/cachingunhistory.vue')
+                 },
+               ]
+              },
+              {
+               path: '/rawhistory',
+                name: 'rawhistory',
+                component: () => import('../views/GlassStorage/rawhistory.vue'),
+                children: [
+                  {
+                   path: '/GlassStorage/rawhistory',
+                   name: 'rawhistory',
+                   component: () => import('../views/GlassStorage/rawhistory.vue')
+                  },
+                ]
+               },
+               {
+                path: '/stockhistory',
+                 name: 'stockhistory',
+                 component: () => import('../views/StockBasicData/stockhistory.vue'),
+                 children: [
+                   {
+                    path: '/StockBasicData/stockhistory',
+                    name: 'stockhistory',
+                    component: () => import('../views/StockBasicData/stockhistory.vue')
+                   },
+                 ]
+                },
+                {
+                 path: '/upreturnhistory',
+                  name: 'upreturnhistory',
+                  component: () => import('../views/Returns/upreturnhistory.vue'),
+                  children: [
+                    {
+                     path: '/Returns/upreturnhistory',
+                     name: 'upreturnhistory',
+                     component: () => import('../views/Returns/upreturnhistory.vue')
+                    },
+                  ]
+                 },
+                 {
+                  path: '/upreturnhistory2',
+                   name: 'upreturnhistory2',
+                   component: () => import('../views/Returns/upreturnhistory2.vue'),
+                   children: [
+                     {
+                      path: '/Returns/upreturnhistory2',
+                      name: 'upreturnhistory2',
+                      component: () => import('../views/Returns/upreturnhistory2.vue')
+                     },
+                   ]
+                  },
+                  {
+                   path: '/statistics',
+                    name: 'statistics',
+                    component: () => import('../views/largescreendisplay/statistics.vue'),
+                    children: [
+                      {
+                       path: '/largescreendisplay/statistics',
+                       name: 'statistics',
+                       component: () => import('../views/largescreendisplay/statistics.vue')
+                      },
+                    ]
+                   },
+                   {
+                    path: '/productionstatistics',
+                     name: 'productionstatistics',
+                     component: () => import('../views/largescreendisplay/productionstatistics.vue'),
+                     children: [
+                       {
+                        path: '/largescreendisplay/productionstatistics',
+                        name: 'productionstatistics',
+                        component: () => import('../views/largescreendisplay/productionstatistics.vue')
+                       },
+                     ]
+                    },
+                    {
+                    path: '/timeaxis',
+                     name: 'timeaxis',
+                     component: () => import('../views/largescreendisplay/timeaxis.vue'),
+                     children: [
+                       {
+                        path: '/largescreendisplay/timeaxis',
+                        name: 'timeaxis',
+                        component: () => import('../views/largescreendisplay/timeaxis.vue')
+                       },
+                     ]
+                    }
   ]
 })
-
-export default router
+// 瀵艰埅瀹堝崼  
+router.beforeEach((to, from, next) => {  
+  const isAuthenticated = !!localStorage.getItem('authToken'); // 鍋囪杩欐槸浣犵殑鐧诲綍鐘舵�佹鏌ラ�昏緫  
+  if (to.matched.some(record => record.meta.requiresAuth) && !isAuthenticated) {  
+    next({ name: 'login' }); // 濡傛灉闇�瑕佺櫥褰曚絾鏈櫥褰曪紝鍒欓噸瀹氬悜鍒扮櫥褰曢〉闈�  
+  } else {  
+    next(); // 鍚﹀垯缁х画瀵艰埅  
+  }  
+}); 
+export default router
\ No newline at end of file

--
Gitblit v1.8.0