.umirc.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. import { defineConfig } from '@umijs/max';
  2. export default defineConfig({
  3. antd: {},
  4. dva: {},
  5. access: {},
  6. model: {},
  7. initialState: {},
  8. request: {},
  9. layout: {
  10. title: '金科环境数字化平台',
  11. locale: false,
  12. },
  13. proxy: {
  14. '/api': {
  15. // target: 'http://47.96.12.136:8788/',
  16. target: 'http://47.96.12.136:8888/',
  17. // target: 'http://120.55.44.4:8900/',
  18. changeOrigin: true,
  19. },
  20. },
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/home',
  25. },
  26. {
  27. name: '首页',
  28. path: '/home',
  29. component: './Home/index',
  30. layout: false,
  31. },
  32. {
  33. name: '流程图列表',
  34. path: '/flow',
  35. hideChildrenInMenu: true,
  36. routes: [
  37. {
  38. path: '/flow',
  39. redirect: '/flow/list',
  40. },
  41. {
  42. name: '流程图列表',
  43. path: '/flow/list',
  44. component: './Flow/index',
  45. },
  46. {
  47. name: '流程图详情',
  48. path: '/flow/audit',
  49. component: './Flow/Audit',
  50. hideInMenu: true,
  51. },
  52. ],
  53. },
  54. {
  55. name: 'OA审批',
  56. path: '/oa',
  57. hideChildrenInMenu: true,
  58. routes: [
  59. {
  60. path: '/oa',
  61. redirect: '/oa/list',
  62. },
  63. {
  64. name: 'OA审批',
  65. path: '/oa/list',
  66. component: './Flow/Oa',
  67. },
  68. {
  69. name: 'OA详情',
  70. path: '/oa/detail/:oaId',
  71. component: './Flow/OaDetail',
  72. },
  73. {
  74. name: '审批详情',
  75. path: '/oa/audit/:oaId/:id',
  76. component: './Flow/OaAuditDetail',
  77. },
  78. ],
  79. },
  80. {
  81. name: '权限演示',
  82. path: '/access',
  83. component: './Access',
  84. },
  85. {
  86. name: 'CRUD 示例',
  87. path: '/table',
  88. component: './Table',
  89. },
  90. {
  91. name: '登录',
  92. path: '/login',
  93. component: './Login/index',
  94. layout: false,
  95. },
  96. {
  97. name: '文档管理',
  98. path: '/fileManagement',
  99. component: './FileManagement/index',
  100. },
  101. {
  102. name: '合同管理',
  103. path: '/contract-manager',
  104. component: './ContractManager/index',
  105. },
  106. {
  107. name: '授权管理',
  108. path: '/permission',
  109. routes: [
  110. {
  111. name: '菜单授权',
  112. path: '/permission/menu',
  113. component: './Permission/menu',
  114. },
  115. {
  116. name: '文档管理',
  117. path: '/permission/file',
  118. component: './Permission/file',
  119. },
  120. ],
  121. },
  122. {
  123. name: '个人中心',
  124. path: '/profile',
  125. component: './Profile/index',
  126. hideInMenu: true
  127. },
  128. // {
  129. // name: '供应商管理',
  130. // path: '/manufacturer',
  131. // component: './ManufacturerMng/Firm',
  132. // },
  133. ],
  134. npmClient: 'yarn',
  135. });