charts.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { getParentLayout, LAYOUT } from '/@/router/constant';
  3. import { t } from '/@/hooks/web/useI18n';
  4. const charts: AppRouteModule = {
  5. path: '/charts',
  6. name: 'Charts',
  7. component: LAYOUT,
  8. redirect: '/charts/echarts/map',
  9. meta: {
  10. orderNo: 500,
  11. icon: 'ion:bar-chart-outline',
  12. title: t('routes.demo.charts.charts'),
  13. },
  14. children: [
  15. {
  16. path: 'baiduMap',
  17. name: 'BaiduMap',
  18. meta: {
  19. title: t('routes.demo.charts.baiduMap'),
  20. },
  21. component: () => import('/@/views/demo/charts/map/Baidu.vue'),
  22. },
  23. {
  24. path: 'aMap',
  25. name: 'AMap',
  26. meta: {
  27. title: t('routes.demo.charts.aMap'),
  28. },
  29. component: () => import('/@/views/demo/charts/map/Gaode.vue'),
  30. },
  31. {
  32. path: 'googleMap',
  33. name: 'GoogleMap',
  34. meta: {
  35. title: t('routes.demo.charts.googleMap'),
  36. },
  37. component: () => import('/@/views/demo/charts/map/Google.vue'),
  38. },
  39. {
  40. path: 'echarts',
  41. name: 'Echarts',
  42. component: getParentLayout('Echarts'),
  43. meta: {
  44. title: 'Echarts',
  45. },
  46. redirect: '/charts/echarts/map',
  47. children: [
  48. {
  49. path: 'map',
  50. name: 'Map',
  51. component: () => import('/@/views/demo/charts/Map.vue'),
  52. meta: {
  53. title: t('routes.demo.charts.map'),
  54. },
  55. },
  56. {
  57. path: 'line',
  58. name: 'Line',
  59. component: () => import('/@/views/demo/charts/Line.vue'),
  60. meta: {
  61. title: t('routes.demo.charts.line'),
  62. },
  63. },
  64. {
  65. path: 'pie',
  66. name: 'Pie',
  67. component: () => import('/@/views/demo/charts/Pie.vue'),
  68. meta: {
  69. title: t('routes.demo.charts.pie'),
  70. },
  71. },
  72. ],
  73. },
  74. ],
  75. };
  76. export default charts;