From 70897b9f8935d377c9e890b4b04966c1d2cd5d82 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期六, 08 十月 2022 14:34:14 +0800
Subject: [PATCH] 对接案件池违建部分接口

---
 src/router/index.js |  242 ++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 224 insertions(+), 18 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 15486c5..fb17ea5 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3,31 +3,234 @@
 Vue.use(VueRouter)
 const routes = [
   {
-    path:'/home',
-    name:'home',
-    component:()=>import('@/views/layout'),
-    children:[
-      {
-        path:"video",
-        name:'video',
-        component:()=>import('@/views/video')
-    }
-  ]
+    path: "/",
+    name: 'index',
+    redirect: '/home'
   },
   {
-    path:'/login',
-    name:'login',
-    component:()=>import('@/views/login')
+    path: '/home',
+    name: 'home',
+    component: () => import('@/views/layout'),
+    meta: {
+      needLogin: true,
+    },
+    children: [
+      {
+        path: 'system',
+        name: 'system',
+        component: () => import('@/views/systemSetting'),
+        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: '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: "operate",
+        name: 'operate',
+        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: "video",
+        name: 'video',
+        component: () => import('@/views/video')
+      },
+      {
+        path: "lampblack",
+        name: 'lampblack',
+        component: () => import('@/views/lampblack')
+      },
+      {
+        path: "law",
+        name: 'law',
+        component: () => import('@/views/law')
+      },
+      {
+        path: "intellect",
+        name: 'intellect',
+        component: () => import('@/views/intellect')
+      },
+      {
+        path: "info",
+        name: 'info',
+        component: () => import('@/views/info')
+      },
+    ]
+  },
+  {
+    path: '/login',
+    name: 'login',
+    component: () => import('@/views/login')
   },
   {
     path: '/screen',
     name: 'screen',
-    component: ()=>import('@/views/screen')
-  },  
+    component: () => import('@/views/screen')
+  },
   {
     path: '/404',
-    name:"404",
-    component: () => import('@/views/NotFound'),
+    name: "404",
+    component: () => import('@/views/info/NotFound'),
+  },
+  {
+    path: '/fail',
+    name: "/fail",
+    component: () => import('@/views/info/Fail'),
+  },
+  {
+    path: '/success',
+    name: "/success",
+    component: () => import('@/views/info/Success'),
   },
   { path: '*', redirect: '/404' }
 ]
@@ -37,5 +240,8 @@
   base: process.env.BASE_URL,
   routes
 })
-
+const originalPush = router.push
+router.push = function push(location) {
+  return originalPush.call(this, location).catch(err => err);
+}
 export default router

--
Gitblit v1.8.0