1
0

excel.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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: 'mdi:microsoft-excel',
  11. title: 'Excel',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/customExport',
  17. name: 'CustomExport',
  18. component: () => import('/@/views/demo/excel/CustomExport.vue'),
  19. meta: {
  20. title: '选择导出格式',
  21. },
  22. },
  23. {
  24. path: '/jsonExport',
  25. name: 'JsonExport',
  26. component: () => import('/@/views/demo/excel/JsonExport.vue'),
  27. meta: {
  28. title: 'JSON数据导出',
  29. },
  30. },
  31. {
  32. path: '/arrayExport',
  33. name: 'ArrayExport',
  34. component: () => import('/@/views/demo/excel/ArrayExport.vue'),
  35. meta: {
  36. title: 'Array数据导出',
  37. },
  38. },
  39. {
  40. path: '/importExcel',
  41. name: 'ImportExcel',
  42. component: () => import('/@/views/demo/excel/ImportExcel.vue'),
  43. meta: {
  44. title: '导入',
  45. },
  46. },
  47. ],
  48. } as AppRouteModule;