.umirc.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-10-23 09:59:34
  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. antd: {
  13. configProvider: {
  14. prefixCls: 'pfm-ant',
  15. },
  16. },
  17. qiankun: {
  18. slave: {},
  19. },
  20. mfsu:false,
  21. lessLoader: {
  22. modifyVars: {
  23. '@ant-prefix': 'pfm-ant',
  24. '@primary-color': '#3377FF',
  25. '@border-color-base':'#dae2f2'
  26. },
  27. javascriptEnabled: true,
  28. }, //对应修改生成的 antd 样式类名
  29. access: {},
  30. model: {},
  31. initialState: {},
  32. request: {},
  33. layout: {
  34. title: '追踪方法学后台管理',
  35. layout: 'side',
  36. menuProps: {
  37. theme: 'light',
  38. }
  39. },
  40. manifest: {
  41. basePath: '/',
  42. },
  43. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/pfmManager/',
  44. proxy: {
  45. '/gateway': {
  46. target: 'http://120.27.235.181:5000/gateway',//开发
  47. //target:'http://47.96.149.190:5000/gateway', //演示
  48. changeOrigin: true,
  49. // pathRewrite: { '^/gateway': '' },
  50. }
  51. },
  52. routes: [
  53. {
  54. path: '/',
  55. redirect: '/setting/fenyeTemplate',
  56. },
  57. {
  58. path: '/monthlyInfoSearch',
  59. name: '月度信息采集',
  60. routes: [
  61. {
  62. path: '/monthlyInfoSearch/empCostDataImport',
  63. name: '人事成本数据导入',
  64. component: './monthlyInfoSearch/empCostDataImport/index',
  65. },
  66. {
  67. path: '/monthlyInfoSearch/patientChargeItemsImport',
  68. name: '患者收费项目导入',
  69. component: './monthlyInfoSearch/patientChargeItemsImport/index',
  70. },
  71. {
  72. path: '/monthlyInfoSearch/patientInfoImport',
  73. name: '患者信息导入',
  74. component: './monthlyInfoSearch/patientInfoImport/index',
  75. },
  76. ],
  77. },
  78. {
  79. name: '基础信息管理',
  80. path: '/baseInfoMana',
  81. routes:[
  82. {
  83. name: '人员管理',
  84. path: '/baseInfoMana/empMana',
  85. component:'./baseInfoMana/empMana'
  86. },
  87. {
  88. name: '单位管理',
  89. path: '/baseInfoMana/unitMana',
  90. component:'./baseInfoMana/unitMana'
  91. },
  92. {
  93. name: '查核组管理',
  94. path: '/baseInfoMana/checkGroupMana',
  95. component:'./baseInfoMana/checkGroupMana'
  96. },
  97. ]
  98. },
  99. {
  100. name: '通用设置',
  101. path: '/setting',
  102. routes:[
  103. {
  104. name: '定性选项管理',
  105. path: '/setting/qualitativeOptionsMana',
  106. component:'./setting/qualitativeOptionsMana'
  107. },
  108. {
  109. name: '分页模板管理',
  110. path: '/setting/fenyeTemplate',
  111. component:'./setting/fenyeTemplate'
  112. }
  113. ]
  114. },
  115. ],
  116. npmClient: 'yarn',
  117. });