Newer
Older
smartcity_map_front / src / router / modules / map.js
StephanieGitHub on 9 Mar 2021 2 KB MOD:新增部件编辑功能
/* 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 }
    }
  ]
}]