biz.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import type { RouteRecordRaw } from 'vue-router'
  2. const Layout = () => import('@/layouts/index.vue')
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/biz',
  6. component: Layout,
  7. redirect: '/biz/index',
  8. name: 'biz_index',
  9. meta: {
  10. title: '业务模型',
  11. icon: 'bx:bxs-component',
  12. },
  13. children: [
  14. {
  15. path: 'index',
  16. name: 'biz_object_list',
  17. component: () => import('@/views/biz/biz/index.vue'),
  18. meta: {
  19. title: '业务对象',
  20. sidebar: false,
  21. breadcrumb: false,
  22. activeMenu: '/biz/object',
  23. },
  24. },
  25. {
  26. path: 'object/:bizId/:objectId',
  27. name: 'bizObjectDetails',
  28. component: () => import('@/views/biz/object/index.vue'),
  29. meta: {
  30. title: '对象详情',
  31. sidebar: false,
  32. activeMenu: '/biz/object',
  33. cache: true,
  34. noCache: 'bizObjectDetails',
  35. },
  36. },
  37. {
  38. path: '/object/oam/:bizId/:objectId',
  39. name: 'bizObjectOAM',
  40. component: () => import('@/views/biz/oam/index.vue'),
  41. meta: {
  42. title: '行为定义',
  43. sidebar: false,
  44. activeMenu: '/biz/object',
  45. cache: true,
  46. noCache: 'bizObjectOAM',
  47. },
  48. },
  49. ],
  50. },
  51. {
  52. path: '/biz1/rule',
  53. component: Layout,
  54. redirect: '/biz1/rule/index',
  55. name: 'rule',
  56. meta: {
  57. title: '业务规则',
  58. icon: 'ep:promotion',
  59. },
  60. children: [
  61. {
  62. path: 'index',
  63. name: 'ruleList',
  64. component: () => import('@/views/biz/rule/index.vue'),
  65. meta: {
  66. title: '业务规则',
  67. sidebar: false,
  68. breadcrumb: false,
  69. activeMenu: '/biz1/rule',
  70. },
  71. },
  72. ],
  73. },
  74. ]
  75. export default routes