/* Layout */ import Layout from '@/layout/Layout' export const mapRouters = [{ path: 'map', component: Layout, redirect: '/mapLayer', name: 'Map', alwaysShow: true, meta: { title: '地图服务', icon: 'icon-config', // 图标 permission: ['/map']// 权限名称 }, children: [ { path: '/mapLayer', name: 'MapLayer', component: () => import('@/views/overview/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']// 权限名称 }, children: [ { path: '/partsEdit', name: 'PartsEdit', component: () => import('@/views/overview/compEdit'), meta: { title: '部件编辑', icon: '', permission: ['/partsEdit'], keepAlive: true } }, { path: '/shopEdit', name: 'ShopEdit', component: () => import('@/views/example/tableExample'), meta: { title: '商户编辑', icon: '', permission: ['/shopEdit'], keepAlive: true } } ] }, { path: 'mapStatistics', component: Layout, redirect: '/mapSearch', name: 'MapStatistics', alwaysShow: true, meta: { title: '查询统计', icon: 'icon-config', // 图标 permission: ['/mapStatistics']// 权限名称 }, children: [ { path: '/mapSearch', name: 'MapSearch', component: () => import('@/views/overview/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']// 权限名称 }, children: [ { path: '/mapServer', name: 'MapServer', component: () => import('@/views/server/listServer'), meta: { title: '服务地址', icon: '', permission: ['/mapServer'], keepAlive: true } } ] }, { path: 'addressSearch', component: Layout, redirect: '/addressSearch', name: 'AddressSearch', alwaysShow: true, meta: { title: '地址查询', icon: 'icon-config' // 图标 }, children: [ { path: '/mapAddress', name: 'MapAddress', component: () => import('@/views/overview/mapSearch'), meta: { title: '地图查询', icon: '' } }, { path: '/listSearch', name: 'ListSearch', component: () => import('@/views/address/address'), meta: { title: '列表查询', icon: '' } } ] }]