
import Layout from '../../layout/Layout'
export const baseRouters = [
  {
    path: '/base',
    name: 'base',
    redirect: '/baseSource',
    hidden: true,
    meta: {
      title: '基础资源子系统',
      permission: ['/base'],
      isSys: true
    }
  },
  {
    path: '/map',
    component: Layout,
    redirect: '/mapLayer',
    name: 'Map',
    alwaysShow: true,
    meta: {
      title: '地图服务',
      icon: 'icon-config', // 图标
      permission: ['/map'], // 权限名称
      sys: '/base'
    },
    children: [
      {
        path: '/mapLayer',
        name: 'MapLayer',
        component: () => import('@/views/baseSource/overview'),
        meta: { title: '图层浏览', icon: '', permission: ['/mapLayer'], keepAlive: true }
      }
    ]
  }, {
    path: '/mapEdit',
    component: Layout,
    redirect: '/partsEdit',
    name: 'MapEdit',
    alwaysShow: true,
    meta: {
      title: '地图编辑',
      icon: 'icon-config', // 图标
      permission: ['/mapEdit'], // 权限名称
      sys: '/base'
    },
    children: [
      {
        path: '/partsEdit',
        name: 'PartsEdit',
        component: () => import('@/views/baseSource/compEdit'),
        meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true }
      }, {
        path: '/shopEdit',
        name: 'ShopEdit',
        component: () => import('@/views/baseSource/compEdit'),
        meta: { title: '商户编辑', icon: '', permission: ['/shopEdit'], keepAlive: true }
      }
    ]
  }, {
    path: '/mapStatistics',
    component: Layout,
    redirect: '/mapSearch',
    name: 'MapStatistics',
    alwaysShow: true,
    meta: {
      title: '查询统计',
      icon: 'icon-config', // 图标
      permission: ['/mapStatistics'], // 权限名称
      sys: '/base'
    },
    children: [
      {
        path: '/mapSearch',
        name: 'MapSearch',
        component: () => import('@/views/baseSource/mapSearch'),
        meta: { title: '地图查询', icon: '', permission: ['/mapSearch'], keepAlive: true }
      }
    ]
  }, {
    path: 'mapConfig',
    component: Layout,
    redirect: '/mapServer',
    name: 'MapConfig',
    alwaysShow: true,
    meta: {
      title: '地图配置',
      icon: 'icon-config', // 图标
      permission: ['/mapConfig'], // 权限名称
      sys: '/base'
    },
    children: [
      {
        path: '/mapServer',
        name: 'MapServer',
        component: () => import('@/views/baseSource/listServer'),
        meta: { title: '服务地址', icon: '', permission: ['/mapServer'], keepAlive: true }
      }
    ]
  },
  // {
  //   path: '/baseSource',
  //   component: Layout,
  //   redirect: '/baseSourceMain',
  //   name: 'BaseSource',
  //   alwaysShow: true,
  //   meta: {
  //     title: '基础资源',
  //     permission: ['/baseSource'],
  //     sys: '/base'
  //   },
  //   children: [
  //     {
  //       path: '/baseSourceMain',
  //       component: () => import('@/views/baseSource/baseSource'),
  //       name: 'BaseSourceMain',
  //       meta: { title: '基础资源', icon: '', belongSys: '', permission: '/baseSourceMain' }
  //     }
  //   ]
  // }
]
