From 2abaf1a68cc38303724d7aa74d2d3ed81af6466f Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期日, 31 三月 2024 22:09:30 +0800
Subject: [PATCH] bug修改

---
 src/router/index.js |  358 ++++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 300 insertions(+), 58 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index fb17ea5..c190ce7 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,8 +1,7 @@
 import Vue from 'vue'
 import VueRouter from 'vue-router'
 Vue.use(VueRouter)
-const routes = [
-  {
+const routes = [{
     path: "/",
     name: 'index',
     redirect: '/home'
@@ -14,60 +13,134 @@
     meta: {
       needLogin: true,
     },
-    children: [
-      {
+    children: [{
         path: 'system',
         name: 'system',
         component: () => import('@/views/systemSetting'),
-        children: [
-          {
-            path: "user",
-            name: "user",
-            component: () => import('@/views/systemSetting/baseSetting/user')
+        children: [{
+            path: 'userSetting',
+            name: 'userSetting',
+            component: () => import('@/views/systemSetting/baseSetting'),
+            children: [{
+                path: "user",
+                name: "user",
+                component: () => import('@/views/systemSetting/baseSetting/user')
+              },
+              {
+                path: 'role',
+                name: 'role',
+                component: () => import('@/views/systemSetting/baseSetting/role')
+              },
+              {
+                path: 'department',
+                name: 'department',
+                component: () => import('@/views/systemSetting/baseSetting/department')
+              },
+
+            ]
           },
           {
-            path: 'role',
-            name: 'role',
-            component: () => import('@/views/systemSetting/baseSetting/role')
+            path: 'platform',
+            name: 'platform',
+            component: () => import('@/views/systemSetting/platform'),
+            children: [{
+                path: 'portalSetting',
+                name: 'portalSetting',
+                component: () => import('@/views/systemSetting/platform/portalSetting')
+              },
+              {
+                path: 'otherInterface',
+                name: 'otherInterface',
+                component: () => import('@/views/systemSetting/platform/otherInterface')
+              },
+              {
+                path: 'mySetting',
+                name: 'mySetting',
+                component: () => import('@/views/systemSetting/platform/mySetting')
+              },
+              {
+                path: 'cockpitManage',
+                name: 'cockpitManage',
+                component: () => import('@/views/systemSetting/platform/cockpitManage')
+              },
+              {
+                path: 'externalLinks', //澶栭儴閾炬帴
+                name: 'externalLinks',
+                component: () => import('@/views/systemSetting/platform/externalLinks')
+              }
+            ]
           },
           {
-            path: 'authority',
-            name: 'authority',
-            component: () => import('@/views/systemSetting/baseSetting/authority')
-          },
-          {
-            path: 'department',
-            name: 'department',
-            component: () => import('@/views/systemSetting/baseSetting/department')
-          },
-          {
-            path: 'portalSetting',
-            name: 'portalSetting',
-            component: () => import('@/views/systemSetting/platform/portalSetting')
-          },
-          {
-            path: 'otherInterface',
-            name: 'otherInterface',
-            component: () => import('@/views/systemSetting/platform/otherInterface')
-          },
-          {
-            path: 'mySetting',
-            name: 'mySetting',
-            component: () => import('@/views/systemSetting/platform/mySetting')
+            path: 'device',
+            name: 'device',
+            component: () => import('@/views/systemSetting/device'),
+            children: [{
+                path: 'bayonet',
+                name: 'bayonet',
+                component: () => import('@/views/systemSetting/device/bayonet')
+              },
+              {
+                path: 'grid',
+                name: 'grid',
+                component: () => import('@/views/systemSetting/device/grid'),
+              },
+              {
+                path: 'point',
+                name: 'point',
+                component: () => import('@/views/systemSetting/device/point'),
+                meta: {
+                  keepAlive: false // 涓嶉渶瑕佽缂撳瓨
+                }
+              },
+              {
+                path: 'handheldTerminal',
+                name: 'handheldTerminal',
+                component: () => import('@/views/systemSetting/device/handheldTerminal'),
+              },
+              {
+                path: 'loudspeaker',
+                name: 'loudspeaker',
+                component: () => import('@/views/systemSetting/device/loudspeaker'),
+              }
+            ]
           }
         ]
+      },
+      {
+        path: 'smoke',
+        name: 'smoke',
+        component: () => import('@/views/smoke'),
+        children: [{
+          path: 'smokeRealTime',
+          name: 'smokeRealTime',
+          component: () => import('@/views/smoke/realTime')
+        }, {
+          path: 'smokeJudgment',
+          name: 'smokeJudgment',
+          component: () => import('@/views/smoke/judgment')
+        },{
+          path: 'smokeAlarm',
+          name: 'smokeAlarm',
+          component: () => import('@/views/smoke/alarm')
+        },{
+          path: 'smokeReport',
+          name: 'smokeReport',
+          component: () => import('@/views/smoke/report')
+        },{
+          path: 'smokecCockpit',
+          name: 'smokecCockpit',
+          component: () => import('@/views/smoke/cockpit')
+        }]
       },
       {
         path: "operate",
         name: 'operate',
         component: () => import('@/views/operate'),
-        children: [
-          {
+        children: [{
             path: 'baseSetting',
             name: 'baseSetting',
             component: () => import('@/views/operate/baseSetting'),
-            children: [
-              {
+            children: [{
                 path: "violation",
                 name: 'violation',
                 component: () => import('@/views/operate/baseSetting/violation'),
@@ -77,19 +150,13 @@
                 name: 'illegalBuild',
                 component: () => import('@/views/operate/baseSetting/illegalBuild'),
               },
-              {
-                path: "threepack",
-                name: 'threepack',
-                component: () => import('@/views/operate/baseSetting/threepack'),
-              }
             ]
           },
           {
             path: 'casepool',
             name: 'casepool',
             component: () => import('@/views/operate/disposal'),
-            children: [
-              {
+            children: [{
                 path: 'pool',
                 name: 'pool',
                 component: () => import('@/views/operate/disposal/casepool/pool'),
@@ -120,8 +187,7 @@
             path: "fivepack",
             name: 'fivepack',
             component: () => import('@/views/operate/fivepack'),
-            children: [
-              {
+            children: [{
                 path: "shop",
                 name: 'shop',
                 component: () => import('@/views/operate/fivepack/shop'),
@@ -139,11 +205,20 @@
             component: () => import('@/views/operate/myWait'),
           },
           {
+            path: 'images',
+            name: 'images',
+            component: () => import('@/views/operate/images'),
+          },
+          {
+            path: 'viewEvent',
+            name: 'viewEvent',
+            component: () => import('@/views/operate/viewEvent'),
+          },
+          {
             path: 'rectification',
             name: 'rectification',
             component: () => import('@/views/operate/rectification'),
-            children: [
-              {
+            children: [{
                 path: "taskList",
                 name: 'taskList',
                 component: () => import('@/views/operate/rectification/taskList'),
@@ -166,25 +241,136 @@
             component: () => import('@/views/operate/lawEnforcement')
           },
           {
+            path: 'workOrder',
+            name: 'workOrder',
+            component: () => import('@/views/operate/workOrder')
+          },
+          {
             path: 'management',
             name: 'management',
             component: () => import('@/views/operate/management'),
-            redirect:'/home/operate/management/myIndex',
-            children: [
-              {
+            redirect: '/home/operate/management/myIndex',
+            children: [{
                 path: 'myIndex',
                 name: 'myIndex',
                 component: () => import('@/views/operate/management/myIndex'),
+              },
+              {
+                path: 'managementMessage',
+                name: 'managementMessage',
+                component: () => import('@/views/operate/management/message'),
+              }
+            ]
+          },
+          {
+            path: 'car',
+            name: 'car',
+            component: () => import('@/views/operate/car'),
+            children: [{
+                path: 'carIndex',
+                name: 'carIndex',
+                component: () => import('@/views/operate/car/myIndex'),
+              },
+              {
+                path: 'lawTrajectory',
+                name: 'lawTrajectory',
+                component: () => import('@/views/operate/car/lawCar'),
+              },
+              {
+                path: 'soilTrajectory',
+                name: 'soilTrajectory',
+                component: () => import('@/views/operate/car/soilCar'),
+              }
+            ]
+          },
+          {
+            path: 'message',
+            name: 'message',
+            component: () => import('@/views/operate/message'),
+            children: [{
+                path: 'messageIndex',
+                name: 'messageIndex',
+                component: () => import('@/views/operate/message/myIndex'),
+              },
+              {
+                path: 'mycontrol',
+                name: 'mycontrol',
+                component: () => import('@/views/operate/message/mycontrol'),
+              },
+            ]
+          },
+          {
+            path: 'log',
+            name: 'log',
+            component: () => import('@/views/operate/log'),
+          },
+          {
+            path: 'sms',
+            name: 'sms',
+            component: () => import('@/views/operate/sms'),
+            children: [{
+                path: 'smsIndex',
+                name: 'smsIndex',
+                component: () => import('@/views/operate/sms/smsIndex'),
+              },
+              {
+                path: 'smsTemplate',
+                name: 'smsTemplate',
+                component: () => import('@/views/operate/sms/smsTemplate'),
+              },
+            ]
+          },
+          {
+            path: "videoControl",
+            name: 'videoControl',
+            component: () => import('@/views/operate/video')
+          },
+          {
+            path: 'viewEvent',
+            name: 'viewEvent',
+            component: () => import('@/views/operate/viewEvent'),
+          },
+          {
+            path: 'images',
+            name: 'images',
+            component: () => import('@/views/operate/images'),
+          },
+          {
+            path: 'writManagement',
+            name: 'writManagement',
+            component: () => import('@/views/operate/writManager'),
+            // redirect: '/home/operate/writManager/writ',
+            children: [{
+                path: 'writTemplate',
+                name: 'writTemplate',
+                component: () => import('@/views/operate/writManager/writTemplate'),
+              },
+              {
+                path: 'writ',
+                name: 'writ',
+                component: () => import('@/views/operate/writManager/writ'),
               }
             ]
           }
         ]
       },
+
       {
-        path: "video",
-        name: 'video',
-        component: () => import('@/views/video')
+        path: "video/0",
+        name: 'video_0',
+        component: () => import('@/views/video'),
+        meta: {
+          keepAlive: false // 涓嶉渶瑕佽缂撳瓨
+        }
+      },{
+        path: "video/1",
+        name: 'video_1',
+        component: () => import('@/views/video'),
+        meta: {
+          keepAlive: false // 涓嶉渶瑕佽缂撳瓨
+        }
       },
+
       {
         path: "lampblack",
         name: 'lampblack',
@@ -205,6 +391,59 @@
         name: 'info',
         component: () => import('@/views/info')
       },
+
+      //  鏅鸿兘宸℃煡
+      {
+        path: 'studyJudge/0', // 棰勮鐮斿垽
+        name: 'studyJudge_0',
+        component: () => import('@/views/intelligentPatrol/studyJudge/tablePage'),
+      },
+      {
+        path: 'studyJudge/1', // 棰勮鐮斿垽
+        name: 'studyJudge_1',
+        component: () => import('@/views/intelligentPatrol/studyJudge/tablePage'),
+      },
+      {
+        path: 'illegalSearch', // 杩濊妫�绱�
+        name: 'illegalSearch',
+        component: () => import('@/views/intelligentPatrol/illegalSearch'),
+      },
+      {
+        path: 'trendAnalysis', // 瓒嬪娍鍒嗘瀽
+        name: 'trendAnalysis',
+        component: () => import('@/views/intelligentPatrol/trendAnalysis'),
+      },
+      {
+        path: 'runReport', // 杩愯鎶ュ憡
+        name: 'runReport',
+        component: () => import('@/views/intelligentPatrol/runReport'),
+      },
+      // 杩濇硶缁熻
+      {
+        path: 'typeStatistics', // 鎸夎繚瑙勭被鍨嬬粺璁�
+        name: 'typeStatistics',
+        component: () => import('@/views/intelligentPatrol/statistics/unlawful/type'),
+      },
+      {
+        path: 'pointStatistics', //鎸夌偣浣嶇粺璁�
+        name: 'pointStatistics',
+        component: () => import('@/views/intelligentPatrol/statistics/unlawful/point'),
+      },
+      {
+        path: 'timeStatistics', //鎸夋椂闂寸粺璁�
+        name: 'timeStatistics',
+        component: () => import('@/views/intelligentPatrol/statistics/unlawful/time'),
+      },
+      {
+        path: 'areaStatistics', //鎸夊尯鍩熺粺璁�
+        name: 'areaStatistics',
+        component: () => import('@/views/intelligentPatrol/statistics/unlawful/area'),
+      },
+      {
+        path: 'shopStatistics', //闂ㄥ墠涓夊寘缁熻
+        name: 'shopStatistics',
+        component: () => import('@/views/intelligentPatrol/statistics/unlawful/shop'),
+      }
     ]
   },
   {
@@ -232,7 +471,10 @@
     name: "/success",
     component: () => import('@/views/info/Success'),
   },
-  { path: '*', redirect: '/404' }
+  {
+    path: '*',
+    redirect: '/404'
+  }
 ]
 
 const router = new VueRouter({
@@ -244,4 +486,4 @@
 router.push = function push(location) {
   return originalPush.call(this, location).catch(err => err);
 }
-export default router
+export default router
\ No newline at end of file

--
Gitblit v1.8.0