From d22f9b9278303f340e2f8efd6f5a98f0b614c05c Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 17 十月 2022 18:03:36 +0800
Subject: [PATCH] 部门功能修改

---
 src/router/index.js |  279 ++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 243 insertions(+), 36 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 28129e5..f4aa33d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3,14 +3,17 @@
 Vue.use(VueRouter)
 const routes = [
   {
-    path:"/",
-    name:'index',
-    redirect:'/home'
+    path: "/",
+    name: 'index',
+    redirect: '/home'
   },
   {
     path: '/home',
     name: 'home',
     component: () => import('@/views/layout'),
+    meta: {
+      needLogin: true,
+    },
     children: [
       {
         path: 'system',
@@ -18,46 +21,240 @@
         component: () => import('@/views/systemSetting'),
         children: [
           {
-            path: "user",
-            name: "user",
-            component: () => import('@/views/systemSetting/baseSetting/user')
+            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: 'authority',
+                name: 'authority',
+                component: () => import('@/views/systemSetting/baseSetting/authority')
+              },
+              {
+                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:'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'),
+              }
+            ]
           }
         ]
       },
       {
         path: "operate",
         name: 'operate',
-        component: () => import('@/views/operate/index.vue')
+        component: () => import('@/views/operate'),
+        children: [
+          {
+            path: 'baseSetting',
+            name: 'baseSetting',
+            component: () => import('@/views/operate/baseSetting'),
+            children: [
+              {
+                path: "violation",
+                name: 'violation',
+                component: () => import('@/views/operate/baseSetting/violation'),
+              },
+              {
+                path: "illegalBuild",
+                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: [
+              {
+                path: 'pool',
+                name: 'pool',
+                component: () => import('@/views/operate/disposal/casepool/pool'),
+              },
+              {
+                path: 'escalation',
+                name: 'escalation',
+                component: () => import('@/views/operate/disposal/casepool/escalation'),
+              },
+              {
+                path: 'dispatch',
+                name: 'dispatch',
+                component: () => import('@/views/operate/disposal/casepool/dispatch'),
+              },
+              {
+                path: 'notDeal',
+                name: 'notDeal',
+                component: () => import('@/views/operate/disposal/casepool/notDeal'),
+              },
+              {
+                path: 'learn',
+                name: 'learn',
+                component: () => import('@/views/operate/disposal/casepool/learn'),
+              },
+            ]
+          },
+          {
+            path: "fivepack",
+            name: 'fivepack',
+            component: () => import('@/views/operate/fivepack'),
+            children: [
+              {
+                path: "shop",
+                name: 'shop',
+                component: () => import('@/views/operate/fivepack/shop'),
+              },
+              {
+                path: "threepackage",
+                name: 'threepackage',
+                component: () => import('@/views/operate/fivepack/threepack'),
+              }
+            ]
+          },
+          {
+            path: 'myWait',
+            name: 'myWait',
+            component: () => import('@/views/operate/myWait'),
+          },
+          {
+            path: 'rectification',
+            name: 'rectification',
+            component: () => import('@/views/operate/rectification'),
+            children: [
+              {
+                path: "taskList",
+                name: 'taskList',
+                component: () => import('@/views/operate/rectification/taskList'),
+              },
+              {
+                path: "surveyList",
+                name: 'surveyList',
+                component: () => import('@/views/operate/rectification/surveyList'),
+              },
+              {
+                path: "renovationList",
+                name: 'renovationList',
+                component: () => import('@/views/operate/rectification/renovationList'),
+              }
+            ]
+          },
+          {
+            path: 'lawEnforcement',
+            name: 'lawEnforcement',
+            component: () => import('@/views/operate/lawEnforcement')
+          },
+          {
+            path: 'management',
+            name: 'management',
+            component: () => import('@/views/operate/management'),
+            redirect: '/home/operate/management/myIndex',
+            children: [
+              {
+                path: 'myIndex',
+                name: 'myIndex',
+                component: () => import('@/views/operate/management/myIndex'),
+              }
+            ]
+          },
+          {
+            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: "video",
@@ -99,9 +296,19 @@
   {
     path: '/404',
     name: "404",
-    component: () => import('@/views/NotFound'),
+    component: () => import('@/views/info/NotFound'),
   },
-  // { path: '*', redirect: '/404' }
+  {
+    path: '/fail',
+    name: "/fail",
+    component: () => import('@/views/info/Fail'),
+  },
+  {
+    path: '/success',
+    name: "/success",
+    component: () => import('@/views/info/Success'),
+  },
+  { path: '*', redirect: '/404' }
 ]
 
 const router = new VueRouter({
@@ -111,6 +318,6 @@
 })
 const originalPush = router.push
 router.push = function push(location) {
-	return originalPush.call(this, location).catch(err => err);
+  return originalPush.call(this, location).catch(err => err);
 }
 export default router

--
Gitblit v1.8.0