Newer
Older
laserPTZFrontV2.0 / src / router / modules / ptz.ts
bairujie on 7 Jun 2023 5 KB bug修改
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')

const routes: Route.recordRaw[] = [
  {
    path: '/home',
    component: Layout,
    redirect: '/home/list',
    name: 'HomeManage',
    meta: {
      title: '首页',
      icon: 'ep:key',
      auth: '/home',
      breadHide: true
    },
    children: [
      {
        path: 'list',
        name: 'HomeList',
        component: () => import('@/views/home/videoVP.vue'),
        meta: {
          title: '首页',
          auth: '/home',
          sidebar: false,
          breadcrumb: true,
          breadHide: true,
          activeMenu: '/home',
        },
      },
    ],
  },
  {
    path: '/map',
    component: Layout,
    redirect: '/map/list',
    name: 'MapManage',
    meta: {
      title: '地图总览',
      icon: 'ep:key',
      auth: '/map',
    },
    children: [
      {
        path: 'list',
        name: 'MapList',
        component: () => import('@/views/map/map.vue'),
        meta: {
          title: '地图总览',
          auth: '/map',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/map',
        },
      },
    ],
  },
  {
    path: '/station',
    component: Layout,
    redirect: '/station/list',
    name: 'StationManage',
    meta: {
      title: '场站管理',
      icon: 'ep:key',
      auth: '/station',
    },
    children: [
      {
        path: 'list',
        name: 'StationList',
        component: () => import('@/views/station/list.vue'),
        meta: {
          title: '场站管理',
          auth: '/station',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/station',
        },
      },
    ],
  },

  {
    path: '/device',
    component: Layout,
    redirect: '/device/list',
    name: 'DeviceManage',
    meta: {
      title: '设备管理',
      icon: 'ep:key',
      auth: '/device',
    },
    children: [
      {
        path: 'list',
        name: 'DeviceList',
        component: () => import('@/views/device/listDevice.vue'),
        meta: {
          title: '设备管理',
          auth: '/device',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/device',
        },
      },
    ],
  },
  {
    path: '/alarm',
    component: Layout,
    redirect: '/alarm/list',
    name: 'AlarmManage',
    meta: {
      title: '告警记录',
      icon: 'ep:key',
      auth: '/alarm',
    },
    children: [
      {
        path: 'list',
        name: 'AlarmList',
        component: () => import('@/views/alarm/listAlarm.vue'),
        meta: {
          title: '告警记录',
          auth: '/alarm',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/alarm',
        },
      },
      {
        path: 'info/:id?',
        name: 'alarmInfo',
        component: () => import('@/views/alarm/alarmDetail.vue'),
        meta: {
          title: '告警记录详情',
          icon: 'ep:key',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/alarm',
        },
      },
    ],
  },
  {
    path: '/line',
    component: Layout,
    redirect: '/line/list',
    name: 'LineManage',
    meta: {
      title: '巡航管理',
      icon: 'ep:key',
      auth: '/line',
    },
    children: [
      {
        path: 'list',
        name: 'LineList',
        component: () => import('@/views/line/listLine.vue'),
        meta: {
          title: '巡航管理',
          auth: '/line',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/line',
        },
      },
    ],
  },
  {
    path: '/task',
    component: Layout,
    redirect: '/task/list',
    name: 'TaskManage',
    meta: {
      title: '计划任务',
      icon: 'ep:key',
      auth: '/task',
    },
    children: [
      {
        path: 'list',
        name: 'TaskList',
        component: () => import('@/views/task/list.vue'),
        meta: {
          title: '计划任务',
          auth: '/task',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/task',
        },
      },
    ],
  },

  {
    path: '/cruiselog',
    component: Layout,
    redirect: '/cruiselog/list',
    name: 'CruiseLogManage',
    meta: {
      title: '巡检日志',
      icon: 'ep:key',
      auth: '/cruiselog',
    },
    children: [
      {
        path: 'list',
        name: 'CruiseLogList',
        component: () => import('@/views/cruiselog/list.vue'),
        meta: {
          title: '巡检日志',
          auth: '/cruiselog',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/cruiselog',
        },
      },
    ],
  },
  {
    path: '/statistics',
    component: Layout,
    redirect: '/statistics/list',
    name: 'StatisticsManage',
    meta: {
      title: '查询统计',
      icon: 'ep:key',
      auth: '/statistics',
    },
    children: [
      {
        path: 'list',
        name: 'StatisticsList',
        component: () => import('@/views/statistics/statistics.vue'),
        meta: {
          title: '查询统计',
          auth: '/statistics',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/statistics',
        },
      },
    ],
  },
]

export default routes