.umirc.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. title: "金科环境数字化管理平台",
  14. proxy: {
  15. '/api': {
  16. // target: 'http://47.96.12.136:8788/',
  17. target: 'http://47.96.12.136:8888/',
  18. // target: 'http://120.55.44.4:8900/',
  19. changeOrigin: true,
  20. },
  21. },
  22. routes: [
  23. {
  24. path: '/',
  25. redirect: '/home',
  26. },
  27. {
  28. name: '首页',
  29. path: '/home',
  30. component: './Home/index',
  31. layout: false,
  32. },
  33. {
  34. name: '审批流管理',
  35. path: '/flow',
  36. hideChildrenInMenu: true,
  37. routes: [
  38. {
  39. path: '/flow',
  40. redirect: '/flow/list',
  41. },
  42. {
  43. name: '审批流管理',
  44. path: '/flow/list',
  45. component: './Flow/index',
  46. },
  47. {
  48. name: '审批流详情',
  49. path: '/flow/audit',
  50. component: './Flow/Audit',
  51. hideInMenu: true,
  52. },
  53. ],
  54. },
  55. {
  56. name: 'OA审批',
  57. path: '/oa',
  58. hideChildrenInMenu: true,
  59. routes: [
  60. {
  61. path: '/oa',
  62. redirect: '/oa/list',
  63. },
  64. {
  65. name: 'OA审批',
  66. path: '/oa/list',
  67. component: './Flow/Oa',
  68. },
  69. {
  70. name: 'OA详情',
  71. path: '/oa/detail/:oaId',
  72. component: './Flow/OaDetail',
  73. },
  74. ],
  75. },
  76. // {
  77. // name: '权限演示',
  78. // path: '/access',
  79. // component: './Access',
  80. // },
  81. // {
  82. // name: 'CRUD 示例',
  83. // path: '/table',
  84. // component: './Table',
  85. // },
  86. {
  87. name: '登录',
  88. path: '/login',
  89. component: './Login/index',
  90. layout: false,
  91. },
  92. {
  93. name: '文档管理',
  94. path: '/fileManagement',
  95. component: './FileManagement/index',
  96. },
  97. {
  98. name: '合同管理',
  99. path: '/contract-manager',
  100. component: './ContractManager/index',
  101. },
  102. {
  103. name: '授权管理',
  104. path: '/permission',
  105. routes: [
  106. {
  107. name: '菜单授权',
  108. path: '/permission/menu',
  109. component: './Permission/menu',
  110. },
  111. {
  112. name: '文档管理',
  113. path: '/permission/file',
  114. component: './Permission/file',
  115. },
  116. ],
  117. },
  118. {
  119. name: '个人中心',
  120. path: '/profile',
  121. routes:[
  122. {
  123. name:'我的申请',
  124. path:'/profile/apply',
  125. component:'./Profile/apply'
  126. },
  127. {
  128. name:'我的审批',
  129. path:'/profile/approve',
  130. component:'./Profile/approve'
  131. },
  132. {
  133. name:'已审核',
  134. path:'/profile/approved',
  135. component:'./Profile/approved'
  136. }
  137. ]
  138. // component: './Profile/index',
  139. // hideInMenu: true,
  140. },
  141. // {
  142. // name: '个人中心',
  143. // path: '/profile',
  144. // component: './Profile/index',
  145. // hideInMenu: true,
  146. // },
  147. {
  148. name: '审批详情',
  149. path: '/profile/:id',
  150. component: './Flow/OaAuditDetail',
  151. hideInMenu: true,
  152. },
  153. {
  154. name: '供应商管理',
  155. path: '/manufacturer',
  156. component: './ManufacturerMng/Firm',
  157. },
  158. ],
  159. npmClient: 'yarn',
  160. });