| | |
| | | import Vue from 'vue' |
| | | import VueRouter from 'vue-router' |
| | | Vue.use(VueRouter) |
| | | const routes = [ |
| | | { |
| | | const routes = [{ |
| | | path: "/", |
| | | name: 'index', |
| | | redirect: '/home' |
| | |
| | | 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') |
| | |
| | | path: 'platform', |
| | | name: 'platform', |
| | | component: () => import('@/views/systemSetting/platform'), |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: 'portalSetting', |
| | | name: 'portalSetting', |
| | | component: () => import('@/views/systemSetting/platform/portalSetting') |
| | |
| | | path: 'device', |
| | | name: 'device', |
| | | component: () => import('@/views/systemSetting/device'), |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: 'bayonet', |
| | | name: 'bayonet', |
| | | component: () => import('@/views/systemSetting/device/bayonet') |
| | |
| | | path: 'handheldTerminal', |
| | | name: 'handheldTerminal', |
| | | component: () => import('@/views/systemSetting/device/handheldTerminal'), |
| | | } |
| | | , |
| | | }, |
| | | { |
| | | path: 'loudspeaker', |
| | | name: 'loudspeaker', |
| | |
| | | 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'), |
| | |
| | | path: 'casepool', |
| | | name: 'casepool', |
| | | component: () => import('@/views/operate/disposal'), |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: 'pool', |
| | | name: 'pool', |
| | | component: () => import('@/views/operate/disposal/casepool/pool'), |
| | |
| | | path: "fivepack", |
| | | name: 'fivepack', |
| | | component: () => import('@/views/operate/fivepack'), |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: "shop", |
| | | name: 'shop', |
| | | component: () => import('@/views/operate/fivepack/shop'), |
| | |
| | | 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'), |
| | |
| | | name: 'management', |
| | | component: () => import('@/views/operate/management'), |
| | | redirect: '/home/operate/management/myIndex', |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: 'myIndex', |
| | | name: 'myIndex', |
| | | component: () => import('@/views/operate/management/myIndex'), |
| | |
| | | path: 'car', |
| | | name: 'car', |
| | | component: () => import('@/views/operate/car'), |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: 'carIndex', |
| | | name: 'carIndex', |
| | | component: () => import('@/views/operate/car/myIndex'), |
| | |
| | | path: 'message', |
| | | name: 'message', |
| | | component: () => import('@/views/operate/message'), |
| | | children: [ |
| | | { |
| | | children: [{ |
| | | path: 'messageIndex', |
| | | name: 'messageIndex', |
| | | component: () => import('@/views/operate/message/myIndex'), |
| | |
| | | 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'), |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | |
| | | name: "/success", |
| | | component: () => import('@/views/info/Success'), |
| | | }, |
| | | { path: '*', redirect: '/404' } |
| | | { |
| | | path: '*', |
| | | redirect: '/404' |
| | | } |
| | | ] |
| | | |
| | | const router = new VueRouter({ |
| | |
| | | router.push = function push(location) { |
| | | return originalPush.call(this, location).catch(err => err); |
| | | } |
| | | export default router |
| | | export default router |