excel.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. export default {
  4. layout: {
  5. path: '/excel',
  6. name: 'Excel',
  7. component: PAGE_LAYOUT_COMPONENT,
  8. redirect: '/excel/customExport',
  9. meta: {
  10. icon: 'ant-design:area-chart-outlined',
  11. title: 'Excel',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/customExport',
  17. name: 'CustomExport',
  18. component: () => import('/@/views/demo/echarts/excel/CustomExport.vue'),
  19. meta: {
  20. title: '选择导出格式',
  21. },
  22. },
  23. {
  24. path: '/jsonExport',
  25. name: 'JsonExport',
  26. component: () => import('/@/views/demo/echarts/excel/JsonExport.vue'),
  27. meta: {
  28. title: 'JSON数据导出',
  29. },
  30. },
  31. {
  32. path: '/arrayExport',
  33. name: 'ArrayExport',
  34. component: () => import('/@/views/demo/echarts/excel/ArrayExport.vue'),
  35. meta: {
  36. title: 'Array数据导出',
  37. },
  38. },
  39. {
  40. path: '/importExcel',
  41. name: 'ImportExcel',
  42. component: () => import('/@/views/demo/echarts/excel/ImportExcel.vue'),
  43. meta: {
  44. title: '导入',
  45. },
  46. },
  47. // ],
  48. // },
  49. ],
  50. } as AppRouteModule;