Newer
Older
cockpit_hxrq_front / src / router / modules / marsMap.js
StephanieGitHub on 6 Apr 2021 2 KB first commit

import Layout from '../../layout/Layout'
export const mapRouters = [
  {
    path: '/marsMaps',
    name: 'marsMaps',
    redirect: '/map',
    hidden: true,
    meta: {
      title: '三维GIS',
      permission: ['/marsMaps'],
      isSys: true
    }
  },
  {
    path: '/map',
    component: Layout,
    redirect: '/mapLayer',
    name: 'Map',
    alwaysShow: true,
    meta: {
      title: '基础GIS地图',
      icon: 'icon-config', // 图标
      // permission: ['/map'], // 权限名称
      sys: '/marsMaps'
    },
    children: [
      {
        path: '/mapLayer',
        name: 'MapLayer',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '基础地图1', icon: '' }
      },
      {
        path: '/mapLayer2',
        name: 'MapLayer2',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '基础地图2', icon: '' }
      }
    ]
  }, {
    path: '/mapTopic',
    component: Layout,
    redirect: '/mapOverview',
    name: 'MapTopic',
    alwaysShow: true,
    meta: {
      title: '专题地图',
      icon: 'icon-config', // 图标
      // permission: ['/mapEdit'], // 权限名称
      sys: '/marsMaps'
    },
    children: [
      {
        path: '/mapOverview',
        name: 'MapOverview',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '综合业务', icon: '' }
      }, {
        path: '/needTopic',
        name: 'NeedTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '需求专题', icon: '' }
      }, {
        path: '/supplyTopic',
        name: 'SupplyTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '供应专题', icon: '' }
      }, {
        path: '/reserveTopic',
        name: 'ReserveTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '储备专题', icon: '' }
      }, {
        path: '/weatherTopic',
        name: 'WeatherTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '气象专题', icon: '' }
      }, {
        path: '/pipeTopic',
        name: 'PipeTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '管网分布', icon: '' }
      }, {
        path: '/hcaTopic',
        name: 'hcaTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '高后果区', icon: '' }
      }, {
        path: '/sinkTopic',
        name: 'SinkTopic',
        component: () => import('@/views/maps/mapOverview'),
        meta: { title: '塌陷专题', icon: '' }
      }
    ]
  }
]