/* Layout */
import Layout from '@/layout/Layout'
export const gcRouters = [
  {
    path: '/gc',
    name: 'gc',
    redirect: '/article',
    hidden: true,
    meta: {
      title: '垃圾分类管理系统',
      permission: ['/garbageClassification'],
      isSys: true
    }
  },
  {
    path: '/view',
    component: Layout,
    name: 'view',
    redirect: '/overview',
    permission: ['/gc/overview'],
    meta: {
      sys: '/gc',
      title: '地图总览',
      icon: 'icon-config' // 图标
    },
    children: [
      {
        path: '/overview',
        name: 'Overview',
        component: () => import('@/views/overview/overview'),
        meta: { title: '地图总览', icon: 'dashboard', permission: ['/gc/overview'] }
      }
    ]
  },
  {
    path: '/article',
    component: Layout,
    redirect: '/articleManage',
    name: 'Article',
    alwaysShow: true,
    meta: {
      title: '物品管理',
      icon: 'icon-config', // 图标
      sys: '/gc',
      permission: ['/gc/articleManage']
    },
    children: [
      {
        path: '/wastebinlist',
        name: 'WastebinList',
        component: () => import('@/views/wastebinManage/wastebinList'),
        meta: { title: '垃圾桶管理', icon: '', permission: ['/gc/wastebin/listPage'] }
      },
      {
        path: '/wastebinClassificationList',
        name: 'WastebinClassificationList',
        component: () => import('@/views/wastebinClassificationManage/wastebinCList'),
        meta: { title: '分类箱管理', icon: '', permission: ['/gc/wastebinc/listPage'] }
      },
      {
        path: '/garbageBagList',
        name: 'GarbageBagList',
        component: () => import('@/views/garbageBag/garbageBagList'),
        meta: { title: '垃圾袋管理', icon: '', permission: ['/gc/garbageBag/listPage'] }
      }
    ]
  },
  {
    path: '/member',
    component: Layout,
    redirect: '/memberList',
    name: 'Member',
    permission: ['/gc/member/listPage'],
    meta: {
      sys: '/gc',
      title: '会员管理',
      icon: 'icon-user', // 图标
      permission: ['/gc/member/listPage']
    },
    children: [
      {
        path: '/memberList',
        name: 'MemberList',
        component: () => import('@/views/memberManage/memberList'),
        meta: { title: '会员管理', icon: '', permission: ['/gc/member/listPage'] }
      }
    ]
  }]
