wl
2022-11-03 b8198734a140076cd392b1ce194aa9aee2aaa0db
src/router/index.js
@@ -2,399 +2,404 @@
import VueRouter from 'vue-router'
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,
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/layout'),
    meta: {
      needLogin: true,
    },
  children: [{
    path: 'system',
    name: 'system',
    component: () => import('@/views/systemSetting'),
    children: [{
        path: 'system',
        name: 'system',
        component: () => import('@/views/systemSetting'),
        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: '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: '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: 'handheldTerminal',
                name: 'handheldTerminal',
                component: () => import('@/views/systemSetting/device/handheldTerminal'),
              },
              {
                path: 'loudspeaker',
                name: 'loudspeaker',
                component: () => import('@/views/systemSetting/device/loudspeaker'),
              }
            ]
          }
        ]
      path: 'userSetting',
      name: 'userSetting',
      component: () => import('@/views/systemSetting/baseSetting'),
      children: [{
        path: "user",
        name: "user",
        component: () => import('@/views/systemSetting/baseSetting/user')
      },
      {
        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: '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: '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: [{
                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: '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: "video",
        name: 'video',
        component: () => import('@/views/video')
      },
      {
        path: "lampblack",
        name: 'lampblack',
        component: () => import('@/views/lampblack')
        path: 'role',
        name: 'role',
        component: () => import('@/views/systemSetting/baseSetting/role')
      },
      {
        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: 'department',
        name: 'department',
        component: () => import('@/views/systemSetting/baseSetting/department')
      },
      //  智能巡查
      {
        path: 'studyJudge', // 预警研判
        name: 'studyJudge',
        component: () => import('@/views/intelligentPatrol/studyJudge'),
      ]
    },
    {
      path: 'platform',
      name: 'platform',
      component: () => import('@/views/systemSetting/platform'),
      children: [{
        path: 'portalSetting',
        name: 'portalSetting',
        component: () => import('@/views/systemSetting/platform/portalSetting')
      },
      {
        path: 'illegalSearch', // 违规检索
        name: 'illegalSearch',
        component: () => import('@/views/intelligentPatrol/illegalSearch'),
        path: 'otherInterface',
        name: 'otherInterface',
        component: () => import('@/views/systemSetting/platform/otherInterface')
      },
      {
        path: 'trendAnalysis', // 趋势分析
        name: 'trendAnalysis',
        component: () => import('@/views/intelligentPatrol/trendAnalysis'),
      },
      // 违法统计
      {
        path: 'typeStatistics', // 按违规类型统计
        name: 'typeStatistics',
        component: () => import('@/views/intelligentPatrol/statistics/unlawful/type'),
        path: 'mySetting',
        name: 'mySetting',
        component: () => import('@/views/systemSetting/platform/mySetting')
      },
      {
        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'),
        path: 'cockpitManage',
        name: 'cockpitManage',
        component: () => import('@/views/systemSetting/platform/cockpitManage')
      }
      ]
    },
    {
      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: 'handheldTerminal',
        name: 'handheldTerminal',
        component: () => import('@/views/systemSetting/device/handheldTerminal'),
      },
      {
        path: 'loudspeaker',
        name: 'loudspeaker',
        component: () => import('@/views/systemSetting/device/loudspeaker'),
      }
      ]
    }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login')
    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: '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: '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: [{
        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: '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: "video",
    name: 'video',
    component: () => import('@/views/video')
  },
  {
    path: "lampblack",
    name: 'lampblack',
    component: () => import('@/views/lampblack')
  },
  {
    path: '/screen',
    name: 'screen',
    component: () => import('@/views/screen')
    path: "law",
    name: 'law',
    component: () => import('@/views/law')
  },
  {
    path: '/404',
    name: "404",
    component: () => import('@/views/info/NotFound'),
    path: "intellect",
    name: 'intellect',
    component: () => import('@/views/intellect')
  },
  {
    path: '/fail',
    name: "/fail",
    component: () => import('@/views/info/Fail'),
    path: "info",
    name: 'info',
    component: () => import('@/views/info')
  },
  //  智能巡查
  {
    path: 'studyJudge', // 预警研判
    name: 'studyJudge',
    component: () => import('@/views/intelligentPatrol/studyJudge'),
  },
  {
    path: '/success',
    name: "/success",
    component: () => import('@/views/info/Success'),
    path: 'illegalSearch', // 违规检索
    name: 'illegalSearch',
    component: () => import('@/views/intelligentPatrol/illegalSearch'),
  },
  {
    path: '*',
    redirect: '/404'
    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'),
  }
  ]
},
{
  path: '/login',
  name: 'login',
  component: () => import('@/views/login')
},
{
  path: '/screen',
  name: 'screen',
  component: () => import('@/views/screen')
},
{
  path: '/404',
  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'
}
]
const router = new VueRouter({