excel.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. const excel: AppRouteModule = {
  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: 'routes.demo.excel.excel',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/customExport',
  17. name: 'CustomExport',
  18. component: () => import('/@/views/demo/excel/CustomExport.vue'),
  19. meta: {
  20. title: 'routes.demo.excel.customExport',
  21. },
  22. },
  23. {
  24. path: '/jsonExport',
  25. name: 'JsonExport',
  26. component: () => import('/@/views/demo/excel/JsonExport.vue'),
  27. meta: {
  28. title: 'routes.demo.excel.jsonExport',
  29. },
  30. },
  31. {
  32. path: '/arrayExport',
  33. name: 'ArrayExport',
  34. component: () => import('/@/views/demo/excel/ArrayExport.vue'),
  35. meta: {
  36. title: 'routes.demo.excel.arrayExport',
  37. },
  38. },
  39. {
  40. path: '/importExcel',
  41. name: 'ImportExcel',
  42. component: () => import('/@/views/demo/excel/ImportExcel.vue'),
  43. meta: {
  44. title: 'routes.demo.excel.importExcel',
  45. },
  46. },
  47. ],
  48. };
  49. export default excel;