/*
 * @Author: your name
 * @Date: 2022-01-04 15:14:05
 * @LastEditTime: 2022-01-08 14:35:30
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \goldenPig\src\router\ChildrenRouters.js
 */
const childrenRouters = [
  /* 首页 */
  {
    path: '/',
    name: 'Dashboard',
    component: () => import('../views/dashboard/dashboard.vue'),
    meta: {
      title: '首页',
      permission: 'dashboard',
      parentName: '首页',
    },
  },
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: () => import('../views/dashboard/dashboard.vue'),
    meta: {
      title: '首页',
      permission: 'dashboard',
      parentName: '首页',
    },
  },

  /*
  *
  * 耳标管理
  *
  * */
  {
    path: '/deviceStatus',
    name: 'DeviceStatus',
    component: () => import('@/views/eartag-admin/device-status/DeviceStatus.vue'),
    meta: {
      title: '设备查看',
      permission: 'deviceStatus',
      parentName: '耳标管理'
    }
  },
  {
    path: '/eartagData',
    name: 'EartagData',
    component: () => import('@/views/eartag-admin/eartag-data/EartagData.vue'),
    meta: {
      title: '耳标数据',
      permission: 'eartagData',
      parentName: '耳标管理'
    }
  },
  {
    path: '/analysisRes',
    name: 'AnalysisRes',
    component: () => import('@/views/eartag-admin/analysis-res/AnalysisRes.vue'),
    meta: {
      title: '分析统计',
      permission: 'analysisRes',
      parentName: '耳标管理'
    }
  },
  {
    path: '/earTagDetail',
    name: 'EartagDetail',
    component: () => import('@/views/eartag-admin/eartag-detail/EartagDetail.vue'),
    meta: {
      title: '耳标数据详情',
      permission: 'earTagDetail',
      parentName: '耳标管理'
    }
  },

  /*
  *
  * 检疫管理
  *
  * */
  {
    path: '/vaccineAdmin',
    name: 'VaccineAdmin',
    component: () => import('@/views/vaccine-admin/VaccineAdmin.vue'),
    meta: {
      title: '检疫管理',
      permission: 'vaccineAdmin',
      parentName: '检疫管理'
    }
  },

  /*
  *
  * 基础资料
  *
  * */
  {
    path: '/archivesAdmin',
    name: 'ArchivesAdmin',
    component: () => import('@/views/basic-data/archives-admin/ArchivesAdmin.vue'),
    meta: {
      title: '档案管理',
      permission: 'archivesAdmin',
      parentName: '基础资料'
    }
  },
  {
    path: '/houseAdmin',
    name: 'HouseAdmin',
    component: () => import('@/views/basic-data/house-admin/HouseAdmin.vue'),
    meta: {
      title: '栋舍管理',
      permission: 'houseAdmin',
      parentName: '基础资料'
    }
  },
  {
    path: '/deviceAdmin',
    name: 'DeviceAdmin',
    component: () => import('@/views/basic-data/device-admin/DeviceAdmin.vue'),
    meta: {
      title: '设备管理',
      permission: 'deviceAdmin',
      parentName: '基础资料'
    }
  },

  /*
  *
  * 系统管理
  *
  * */
  {
    path: '/menuAdmin',
    name: 'MenuAdmin',
    component: () => import('../views/SystemAdmin/MenuAdmin.vue'),
    meta: {
      title: '菜单管理',
      permission: 'menuAdmin',
      parentName: '系统管理'
    }
  },
  {
    path: '/authAdmin',
    name: 'AuthAdmin',
    component: () => import('../views/SystemAdmin/AuthAdmin.vue'),
    meta: {
      title: '职位管理',
      permission: 'authAdmin',
      parentName: '系统管理'
    }
  },
  {
    path: '/userAdmin',
    name: 'UserAdmin',
    component: () => import('../views/SystemAdmin/UserAdmin.vue'),
    meta: {
      title: '用户管理',
      permission: 'userAdmin',
      parentName: '系统管理'
    }
  },
]

export default childrenRouters;
