test_routes.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // 当前系统 menu 接口
  2. /**
  3. * /sys/resource/list-tree -> /sys/resource/list-menu-permissions
  4. * 数据 对标
  5. */
  6. /**
  7. * 显示名称(title): -> meta.title
  8. * 图标(icon): -> meta.icon
  9. * 类型(type): -> meta.type {0:菜单, 1: Iframe, 2: 外链, 3: 按钮}
  10. * 别名(alias): -> name 即:组件名
  11. * 路由地址(path): -> path eg: /flow/groups/index
  12. * 视图(component): -> component eg: flow/groups/index 即:组件实体路径
  13. * !!!重定向(redirect): -> redirect eg: /flow/groups/index 未添加到 redirect ×××
  14. * !!!菜单高亮(active) 【本身就不会保存】: -> ??? ××× 先隐藏 todo...
  15. * 颜色(color): -> ??? ××× 未添加到 配置中 ××× 先隐藏 todo...
  16. * 隐藏菜单(hidden): -> ??? ××× 未添加到 配置中 ×××
  17. * 隐藏面包屑(hiddenBreadcrumb) 【本身就不会保存】: -> ??? ××× 未添加到 配置中 ×××
  18. * 接口权限 apiList 删除 实际未响应 todo....
  19. */
  20. // 成功的 本地 示例
  21. const routers = [
  22. {
  23. path: '/flow',
  24. // component: Layout,
  25. component: '',
  26. meta: { title: '流程管理', icon: 'guide' },
  27. redirect: '/flow/group', // todo
  28. children: [
  29. {
  30. path: 'group1',
  31. // component: () => import('@/views/flow/group/index.vue'),
  32. component: 'flow/group/index',
  33. name: 'flow_group1',
  34. meta: { title: '流程组', icon: '' }
  35. },
  36. {
  37. path: 'group',
  38. // component: () => import('@/views/flow/group/index.vue'),
  39. component: 'flow/group/index',
  40. name: 'flow_group',
  41. meta: { title: '流程组 - ui调整', icon: '' }
  42. },
  43. {
  44. path: 'form',
  45. // component: () => import('@/views/flow/form/index.vue'),
  46. component: 'flow/form/index',
  47. name: 'flow_form',
  48. meta: { title: '流程表单', icon: '' }
  49. },
  50. {
  51. path: 'create',
  52. // component: () => import('@/views/flow/create/index.vue'),
  53. component: 'flow/create/index',
  54. name: 'flow_create',
  55. meta: { title: '创建流程', icon: '' }
  56. },
  57. {
  58. path: 'task',
  59. // component: () => import('@/views/flow/task/index.vue'),
  60. component: 'flow/task/index',
  61. name: 'flow_task',
  62. meta: { title: '流程任务', icon: '' }
  63. },
  64. {
  65. path: 'instance',
  66. // component: () => import('@/views/flow/instance/index.vue'),
  67. component: 'flow/instance/index',
  68. name: 'flow_instance',
  69. meta: { title: '流程实例', icon: '' }
  70. },
  71. {
  72. path: 'modal',
  73. // component: () => import('@/views/flow/modal/index.vue'),
  74. component: 'flow/modal/index',
  75. name: 'flow_modal',
  76. meta: { title: '流程模型', icon: '' }
  77. }
  78. ]
  79. }
  80. ]
  81. export const test_menuData = {
  82. menu: routers,
  83. permissions: ['list.add', 'list.edit', 'list.delete', 'user.add', 'user.edit', 'user.delete']
  84. }