Newer
Older
GDT_FRONT / src / router / modules / menu.js
[wangxitong] on 21 Jun 2022 5 KB first commit
/* Layout */
import Layout from '@/layout/Layout'
export const menuRouters = [
  {
  path: '/',
  component: Layout,
  redirect: '/caseList',
  name: '/',
  alwaysShow: true,
  meta: {
    title: '安防事件管理',
    icon: 'icon-config' // 图标
  },
  children: [
    {
      path: '/caseList',
      name: 'CaseList',
      component: () => import('@/views/case/caseList'),
      meta: { title: '安防事件管理', icon: '' }
    },
    {
      path: '/caseLevelList',
      name: 'CaseLevelList',
      component: () => import('@/views/case/caseLevelList'),
      meta: { title: '事件危险级别配置', icon: '' }
    },
    {
      path: '/caseType',
      name: 'CaseTypeList',
      component: () => import('@/views/case/caseTypeList'),
      meta: { title: '事件类别配置', icon: '' }
    }
  ]
},
  {
    path: 'device',
    component: Layout,
    redirect: '/deviceList',
    name: 'Device',
    // alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/deviceList',
        name: 'DeviceList',
        component: () => import('@/views/device/deviceList'),
        meta: { title: '设备管理', icon: '' }
      },
      // {
      //   path: '/judgeList',
      //   name: 'JudgeList',
      //   component: () => import('@/views/example/tableExample'),
      //   meta: { title: '状态计算系数与评判', icon: '' }
      // }
    ]
  },
  {
    path: 'person',
    component: Layout,
    redirect: '/staffList',
    name: 'Person',
    alwaysShow: true,
    meta: {
      title: '员工管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/staffList',
        name: 'StaffList',
        component: () => import('@/views/person/staffList'),
        meta: { title: '人员管理', icon: '' }
      },
      {
        path: '/attendanceList',
        name: 'AttendanceList',
        component: () => import('@/views/person/attendanceList'),
        meta: { title: '考勤管理', icon: '' }
      }
    ]
  },
  {
    path: 'visitor',
    component: Layout,
    redirect: '/applicationList',
    name: 'Visitor',
    alwaysShow: true,
    meta: {
      title: '访客管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/applicationList',
        name: 'ApplicationList',
        component: () => import('@/views/visitor/applicationList'),
        meta: { title: '申请管理', icon: '' }
      },
      {
        path: '/visitList',
        name: 'VisitList',
        component: () => import('@/views/visitor/visitList'),
        meta: { title: '访问管理', icon: '' }
      }
    ]
  },
  {
    path: 'black',
    component: Layout,
    redirect: '/blacklist',
    name: 'Black',
    meta: {
      title: '黑名单管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/blacklist',
        name: 'Blacklist',
        component: () => import('@/views/black/blackList'),
        meta: { title: '黑名单管理', icon: '' }
      }
    ]
  },
  {
    path: 'security',
    component: Layout,
    redirect: '/scheduleList',
    name: 'Security',
    alwaysShow: true,
    meta: {
      title: '安保管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/scheduleList',
        name: 'ScheduleList',
        component: () => import('@/views/security/scheduleList'),
        meta: { title: '安保排班记录', icon: '' }
      },
      {
        path: '/securityScoreList',
        name: 'SecurityScoreList',
        component: () => import('@/views/security/securityScoreList'),
        meta: { title: '安保考评结果', icon: '' }
      }
    ]
  },
  {
    path: 'property',
    component: Layout,
    redirect: '/orderlist',
    name: 'Property',
    alwaysShow: true,
    meta: {
      title: '物业管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/orderlist',
        name: 'Orderlist',
        component: () => import('@/views/property/orderList'),
        meta: { title: '物业工单管理', icon: '' }
      },
      {
        path: '/propertyScoreList',
        name: 'PropertyScoreList',
        component: () => import('@/views/property/propertyScoreList'),
        meta: { title: '物业考评结果', icon: '' }
      },
      {
        path: '/serviceList',
        name: 'ServiceList',
        component: () => import('@/views/property/serviceList'),
        meta: { title: '物业服务管理', icon: '' }
      },
      {
        path: '/moneyList',
        name: 'MoneyList',
        component: () => import('@/views/property/moneyList'),
        meta: { title: '系统预算', icon: '' }
      }
    ]
  },
  {
    path: 'asset',
    component: Layout,
    redirect: '/assetlist',
    name: 'Asset',
    meta: {
      title: '固定资产管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/assetlist',
        name: 'Assetlist',
        component: () => import('@/views/asset/assetList'),
        meta: { title: '固定资产管理', icon: '' }
      }
    ]
  },
  {
    path: 'energy',
    component: Layout,
    redirect: '/energyStatistics',
    name: 'Energy',
    meta: {
      title: '能源管理',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/energyStatistics',
        name: 'EnergyStatistics',
        component: () => import('@/views/energy/energyStatistics'),
        meta: { title: '能源统计', icon: '' }
      },
      {
        path: '/energylist',
        name: 'Energylist',
        component: () => import('@/views/energy/energyList'),
        meta: { title: '能源数据', icon: '' }
      }
    ]
  }
  ]