.umirc.ts 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-04-26 09:58:54
  6. * @FilePath: /BudgetManaSystem/.umirc.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. import { defineConfig } from '@umijs/max';
  10. const { REACT_APP_ENV } = process.env;
  11. export default defineConfig({
  12. // history:{
  13. // type:'hash'
  14. // },
  15. antd: {
  16. configProvider: {
  17. prefixCls: 'bms-ant',
  18. primaryColor: '#3377FF'
  19. // getPopupContainer:(triggerNode:HTMLElement)=>triggerNode
  20. }
  21. },
  22. qiankun: {
  23. slave: {},
  24. },
  25. lessLoader: {
  26. modifyVars: { '@ant-prefix': 'bms-ant' }
  27. }, //对应修改生成的 antd 样式类名
  28. access: {},
  29. model: {},
  30. initialState: {},
  31. request: {},
  32. layout: {
  33. title: '前瞻性绩效管理',
  34. layout: 'side',
  35. menuProps: {
  36. theme: 'light',
  37. }
  38. },
  39. theme: {
  40. primaryColor: '#3377FF'
  41. },
  42. manifest: {
  43. basePath: '/',
  44. },
  45. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/perform/',
  46. proxy: {
  47. '/gateway': {
  48. target: 'http://120.27.235.181:5000/gateway',//开发
  49. //target:'http://47.96.149.190:5000/gateway', //演示
  50. changeOrigin: true,
  51. // pathRewrite: { '^/gateway': '' },
  52. }
  53. },
  54. routes: [
  55. {
  56. path: '/',
  57. redirect: '/home',
  58. },
  59. {
  60. name: '首页',
  61. path: '/home',
  62. component: './Home',
  63. },
  64. {
  65. name: '系统设置',
  66. path: '/setting',
  67. routes: [
  68. {
  69. name: '基础设置',
  70. path: '/setting/baseSetting',
  71. routes: [
  72. {
  73. name: '业务字典分类管理',
  74. path: '/setting/baseSetting/dicClassfication',
  75. component: './setting/baseSetting/dicClassfication',
  76. },
  77. {
  78. name: '业务字典管理',
  79. path: '/setting/baseSetting/businessDicMana',
  80. component: './setting/baseSetting/businessDicMana',
  81. },
  82. {
  83. name: '参数管理',
  84. path: '/setting/baseSetting/paramsMana',
  85. component: './setting/baseSetting/paramsMana',
  86. },
  87. {
  88. name: '职类基础设定',
  89. path: '/setting/baseSetting/jobCateBaseSet',
  90. component: './setting/baseSetting/jobCateBaseSet',
  91. },
  92. {
  93. name: '岗位等级系数设定',
  94. path: '/setting/baseSetting/positionLevelRateSet',
  95. component: './setting/baseSetting/positionLevelRateSet',
  96. }
  97. ]
  98. },
  99. {
  100. name: '管理绩效设置',
  101. path: '/setting/manaPerformanceSet',
  102. routes: [
  103. {
  104. name: '管理指标项目设定',
  105. path: '/setting/manaPerformanceSet/manaIndicItemSet',
  106. component: './setting/manaPerformanceSet/manaIndicItemSet',
  107. },
  108. {
  109. name: '职类考核分级设定',
  110. path: '/setting/manaPerformanceSet/classAssessAndGradeSet',
  111. component: './setting/manaPerformanceSet/classAssessAndGradeSet',
  112. },
  113. {
  114. name: '指标分组权重设定',
  115. path: '/setting/manaPerformanceSet/indicGroupWeightSet',
  116. component: './setting/manaPerformanceSet/indicGroupWeightSet',
  117. },
  118. {
  119. name: '单元指标目标设定',
  120. path: '/setting/manaPerformanceSet/unitIndicTargetSet',
  121. component: './setting/manaPerformanceSet/unitIndicTargetSet',
  122. },
  123. ]
  124. },
  125. {
  126. name: '报表设置',
  127. path: '/setting/reportSet',
  128. routes: [
  129. {
  130. name: '报表列管理',
  131. path: '/setting/reportSet/reportListMana',
  132. component: './setting/reportSet/reportListMana',
  133. },
  134. {
  135. name: '报表设置',
  136. path: '/setting/reportSet/reportSetting',
  137. component: './setting/reportSet/reportSetting',
  138. },
  139. {
  140. name: '报表跳转管理',
  141. path: '/setting/reportSet/reportNavSet',
  142. component: './setting/reportSet/reportNavSet',
  143. },
  144. {
  145. name: '自定义SQL管理',
  146. path: '/setting/reportSet/diySqlMana',
  147. component: './setting/reportSet/diySqlMana',
  148. }
  149. ]
  150. },
  151. {
  152. name: '核算单元设置',
  153. path: '/setting/checkUnitSet',
  154. routes: [
  155. {
  156. name: '核算单元分类管理',
  157. path: '/setting/checkUnitSet/checkUnitClassMana',
  158. component: './setting/checkUnitSet/checkUnitClassMana',
  159. },
  160. {
  161. name: '核算单元管理',
  162. path: '/setting/checkUnitSet/checkUnitMana',
  163. component: './setting/checkUnitSet/checkUnitMana',
  164. },
  165. {
  166. name: '核算单元科室对照',
  167. path: '/setting/checkUnitSet/checkUnitDepMap',
  168. component: './setting/checkUnitSet/checkUnitDepMap',
  169. },
  170. {
  171. name: '核算单元人员设定',
  172. path: '/setting/checkUnitSet/checkUnitEmpSet',
  173. component: './setting/checkUnitSet/checkUnitEmpSet',
  174. },
  175. {
  176. name: '医疗组设定',
  177. path: '/setting/checkUnitSet/medicalGroupSet',
  178. component: './setting/checkUnitSet/medicalGroupSet',
  179. },
  180. {
  181. name: '检视单元权限设定',
  182. path: '/setting/checkUnitSet/viewUnitPermSet',
  183. component: './setting/checkUnitSet/viewUnitPermSet',
  184. }
  185. ]
  186. },
  187. ]
  188. },
  189. {
  190. name: '绩校管理',
  191. path: '/budgetMana',
  192. routes: [
  193. {
  194. name: '月度结转',
  195. path: '/budgetMana/monthlySet',
  196. component: './budgetMana/monthlySet'
  197. },
  198. {
  199. name: '月度设置信息核对',
  200. path: '/budgetMana/monthlyInfoCheck',
  201. component: './budgetMana/monthlyInfoCheck'
  202. },
  203. {
  204. name: '月度绩效数据核对',
  205. path: '/budgetMana/monthlyDataCheck',
  206. component: './budgetMana/monthlyDataCheck'
  207. },
  208. {
  209. name: '人事薪酬预算',
  210. path: '/budgetMana/personnelSalaryBudget',
  211. component: './budgetMana/personnelSalaryBudget'
  212. },
  213. {
  214. name: '一次分配',
  215. path: '/budgetMana/oneBatch',
  216. component: './budgetMana/oneBatch'
  217. }
  218. ]
  219. },
  220. {
  221. name: '报表查询',
  222. path: '/reportCheck',
  223. routes: [
  224. {
  225. path: '/reportCheck/report/:reportCode',
  226. component: './reportCheck/report',
  227. },
  228. ]
  229. },
  230. ],
  231. npmClient: 'yarn',
  232. });