guoshipeng
2023-01-05 e4bdde0126e1d922456c270626bac312df27912f
src/router/dynamicRouter.js
@@ -62,7 +62,7 @@
const averageContrast = {
  path: 'charts/averageContrast',
  name: 'averageContrast',
  component: () => import('@/views/averageContrast/index'),
  component: () => import('@/views/averageContrast/index'),
  meta: { title: '监测因子均值对比', icon: 'example' }
}
@@ -79,6 +79,13 @@
  component: () => import('@/views/airPollutionCalendar/index'),
  meta: { title: '空气质量污染日历', icon: 'example' }
}
// const PM5PM10ForecastChart = {
//   path: 'charts/PM5PM10ForecastChart',
//   name: 'PM5PM10ForecastChart',
//   component: () => import('@/views/PM5PM10ForecastChart/index'),
//   meta: { title: 'PM5PM10预测图', icon: 'example' }
// }
// 报表管理
const showMpData = {
@@ -115,7 +122,7 @@
}
// 综合分析
// 城市空气质量排行
const cityAirRank = {
const cityAirRank = {
  path: 'analyse/cityAirRank',
  name: 'cityAirRank',
  component: () => import('@/views/cityAirRank/index'),
@@ -155,6 +162,13 @@
  component: () => import('@/views/surveyReport/index'),
  meta: { title: '现场勘察报告', icon: 'example' }
}
const sectionReport = {
  path: 'analyse/sectionReport',
  name: 'sectionReport',
  component: () => import('@/views/sectionReport/index'),
  meta: { title: '道路尘负荷走航报告', icon: 'example' }
}
// analyse/air
const air = {
  path: 'analyse/air',
@@ -169,7 +183,6 @@
  component: () => import('@/views/dailyreport/index'),
  meta: { title: '走航监测日报', icon: 'example' }
}
// 映射路由,存入对象
@@ -197,8 +210,9 @@
  airQualityReportDisplay,
  Monitoringstation,
  Equipment,
  dailyreport,
  dailyreport,
  sectionReport,
  // PM5PM10ForecastChart
}
// 网络请求,第一次登陆只有4个路由,所以要添加路由,页面刷新的时候,判断大于4个路由,就不会重新添加。