module.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/customer',
  6. component: Layout,
  7. redirect: '/customer/ent',
  8. name: 'customer',
  9. meta: {
  10. title: '客户管理',
  11. icon: 'ep:avatar',
  12. permit: 'system_customer',
  13. },
  14. children: [
  15. {
  16. path: 'ent',
  17. component: () => import('@/views/customer/ent/index.vue'),
  18. name: 'customer_ent',
  19. meta: { title: '企业单位' },
  20. },
  21. {
  22. path: 'org',
  23. component: () => import('@/views/customer/org/index.vue'),
  24. name: 'customer_org',
  25. meta: { title: '政府机构' },
  26. },
  27. {
  28. path: 'partner',
  29. component: () => import('@/views/customer/partner/index.vue'),
  30. name: 'customer_partner',
  31. meta: { title: '合作伙伴' },
  32. },
  33. ],
  34. },
  35. {
  36. path: '/workflow',
  37. component: Layout,
  38. redirect: '/workflow/ins',
  39. name: 'workflow',
  40. meta: {
  41. title: '工作流程',
  42. icon: 'ep:postcard',
  43. permit: 'system_workflow',
  44. },
  45. children: [
  46. {
  47. path: 'def',
  48. component: () => import('@/views/workflow/def/index.vue'),
  49. name: 'workflow_def',
  50. meta: { title: '流程定义' },
  51. },
  52. {
  53. path: 'ins',
  54. component: () => import('@/views/workflow/ins/index.vue'),
  55. name: 'workflow_ins',
  56. meta: { title: '流程实例' },
  57. },
  58. {
  59. path: 'example',
  60. component: () => import('@/views/workflow/example/index.vue'),
  61. name: 'workflow_example',
  62. meta: { title: '流程示例' },
  63. },
  64. ],
  65. },
  66. {
  67. path: '/job',
  68. component: Layout,
  69. redirect: '/job/index',
  70. name: 'job',
  71. meta: {
  72. title: '系统作业',
  73. icon: 'ep:alarm-clock',
  74. permit: 'system_job',
  75. },
  76. children: [
  77. {
  78. path: 'index',
  79. component: () => import('@/views/job/job/index.vue'),
  80. name: 'system_job_def',
  81. meta: { title: '作业调度' },
  82. },
  83. {
  84. path: 'class',
  85. component: () => import('@/views/job/job_class/index.vue'),
  86. name: 'system_job_class',
  87. meta: { title: '作业类' },
  88. },
  89. ],
  90. },
  91. ]
  92. export default routes