From af20e065161aeb388303d137d395725ec9dd041f Mon Sep 17 00:00:00 2001 From: liyanqi <15181887205@163.com> Date: 星期二, 01 十一月 2022 18:43:03 +0800 Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui --- src/router/index.js | 105 ++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 73 insertions(+), 32 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index acdcb0b..0ae2794 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,18 +13,15 @@ meta: { needLogin: true, }, - children: [ - { + children: [{ path: 'system', name: 'system', component: () => import('@/views/systemSetting'), - children: [ - { + children: [{ path: 'userSetting', name: 'userSetting', component: () => import('@/views/systemSetting/baseSetting'), - children: [ - { + children: [{ path: "user", name: "user", component: () => import('@/views/systemSetting/baseSetting/user') @@ -47,8 +43,7 @@ path: 'platform', name: 'platform', component: () => import('@/views/systemSetting/platform'), - children: [ - { + children: [{ path: 'portalSetting', name: 'portalSetting', component: () => import('@/views/systemSetting/platform/portalSetting') @@ -69,8 +64,7 @@ path: 'device', name: 'device', component: () => import('@/views/systemSetting/device'), - children: [ - { + children: [{ path: 'bayonet', name: 'bayonet', component: () => import('@/views/systemSetting/device/bayonet') @@ -89,8 +83,7 @@ path: 'handheldTerminal', name: 'handheldTerminal', component: () => import('@/views/systemSetting/device/handheldTerminal'), - } - , + }, { path: 'loudspeaker', name: 'loudspeaker', @@ -104,13 +97,11 @@ 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'), @@ -126,8 +117,7 @@ path: 'casepool', name: 'casepool', component: () => import('@/views/operate/disposal'), - children: [ - { + children: [{ path: 'pool', name: 'pool', component: () => import('@/views/operate/disposal/casepool/pool'), @@ -158,8 +148,7 @@ path: "fivepack", name: 'fivepack', component: () => import('@/views/operate/fivepack'), - children: [ - { + children: [{ path: "shop", name: 'shop', component: () => import('@/views/operate/fivepack/shop'), @@ -177,11 +166,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'), @@ -208,8 +206,7 @@ name: 'management', component: () => import('@/views/operate/management'), redirect: '/home/operate/management/myIndex', - children: [ - { + children: [{ path: 'myIndex', name: 'myIndex', component: () => import('@/views/operate/management/myIndex'), @@ -225,8 +222,7 @@ path: 'car', name: 'car', component: () => import('@/views/operate/car'), - children: [ - { + children: [{ path: 'carIndex', name: 'carIndex', component: () => import('@/views/operate/car/myIndex'), @@ -247,8 +243,7 @@ path: 'message', name: 'message', component: () => import('@/views/operate/message'), - children: [ - { + children: [{ path: 'messageIndex', name: 'messageIndex', component: () => import('@/views/operate/message/myIndex'), @@ -326,6 +321,49 @@ name: 'info', component: () => import('@/views/info') }, + + // 鏅鸿兘宸℃煡 + { + path: 'studyJudge', // 棰勮鐮斿垽 + name: 'studyJudge', + component: () => import('@/views/intelligentPatrol/studyJudge'), + }, + { + path: 'illegalSearch', // 杩濊妫�绱� + name: 'illegalSearch', + component: () => import('@/views/intelligentPatrol/illegalSearch'), + }, + { + path: 'trendAnalysis', // 瓒嬪娍鍒嗘瀽 + name: 'trendAnalysis', + component: () => import('@/views/intelligentPatrol/trendAnalysis'), + }, + // 杩濇硶缁熻 + { + 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'), + } ] }, { @@ -353,7 +391,10 @@ name: "/success", component: () => import('@/views/info/Success'), }, - { path: '*', redirect: '/404' } + { + path: '*', + redirect: '/404' + } ] const router = new VueRouter({ @@ -365,4 +406,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