.umirc.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. },
  75. // {
  76. // name: '权限演示',
  77. // path: '/access',
  78. // component: './Access',
  79. // },
  80. // {
  81. // name: 'CRUD 示例',
  82. // path: '/table',
  83. // component: './Table',
  84. // },
  85. {
  86. name: '登录',
  87. path: '/login',
  88. component: './Login/index',
  89. layout: false,
  90. },
  91. {
  92. name: '文档管理',
  93. path: '/fileManagement',
  94. component: './FileManagement/index',
  95. },
  96. {
  97. name: '合同管理',
  98. path: '/contract-manager',
  99. component: './ContractManager/index',
  100. },
  101. {
  102. name: '授权管理',
  103. path: '/permission',
  104. routes: [
  105. {
  106. name: '菜单授权',
  107. path: '/permission/menu',
  108. component: './Permission/menu',
  109. },
  110. {
  111. name: '文档管理',
  112. path: '/permission/file',
  113. component: './Permission/file',
  114. },
  115. ],
  116. },
  117. {
  118. name: '个人中心',
  119. path: '/profile',
  120. component: './Profile/index',
  121. hideInMenu: true,
  122. },
  123. {
  124. name: '审批详情',
  125. path: '/profile/:id',
  126. component: './Flow/OaAuditDetail',
  127. hideInMenu: true,
  128. },
  129. {
  130. name: '供应商管理',
  131. path: '/manufacturer',
  132. component: './ManufacturerMng/Firm',
  133. },
  134. ],
  135. npmClient: 'yarn',
  136. });