/* * @Author: code4eat awesomedema@gmail.com * @Date: 2022-12-14 14:14:32 * @LastEditors: code4eat awesomedema@gmail.com * @LastEditTime: 2023-10-26 13:19:15 * @FilePath: /BudgetManaSystem/.umirc.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { defineConfig } from '@umijs/max'; const { REACT_APP_ENV } = process.env; export default defineConfig({ antd: { configProvider: { prefixCls: 'cost-ant', }, }, qiankun: { slave: {}, }, mfsu:false, lessLoader: { modifyVars: { '@ant-prefix': 'cost-ant', '@primary-color': '#3377FF', '@border-color-base':'#dae2f2' }, javascriptEnabled: true, }, //对应修改生成的 antd 样式类名 access: {}, model: {}, initialState: {}, request: {}, layout: { title: '成本核算系统', layout: 'side', menuProps: { theme: 'light', } }, manifest: { basePath: '/', }, publicPath: REACT_APP_ENV == 'dev' ? '/' : '/costAccount/', proxy: { '/gateway': { target: 'http://120.27.235.181:5000/gateway',//开发 //target:'http://47.96.149.190:5000/gateway', //演示 changeOrigin: true, // pathRewrite: { '^/gateway': '' }, } }, routes: [ { path: '/', redirect: '/baseSetting/otherItemSet', }, { path: '/home', component: './Home/index', }, { path: '/baseSetting', name: '基础设置', icon: 'tool', routes: [ { path: '/baseSetting/otherItemSet', name: '其它设置', icon: 'tool', routes: [ { path: '/baseSetting/otherItemSet/reportItemSet', name: '报表项目设置', component: './baseSetting/otherItemSet/reportItemSet/index', }, ], }, ], }, { path: '/monthlyInfoSearch', name: '月度信息采集', routes: [ { path: '/monthlyInfoSearch/empCostDataImport', name: '人事成本数据导入', component: './monthlyInfoSearch/empCostDataImport/index', }, { path: '/monthlyInfoSearch/patientChargeItemsImport', name: '患者收费项目导入', component: './monthlyInfoSearch/patientChargeItemsImport/index', }, { path: '/monthlyInfoSearch/patientInfoImport', name: '患者信息导入', component: './monthlyInfoSearch/patientInfoImport/index', }, ], }, { path: '/costAccounting', name: '成本核算', routes: [ ], }, { path: '/reportExport', name: '报表输出', routes: [ { path: '/reportExport/costAnalysisReport', name: '成本分析报表', routes: [ ], }, ], }, { path: '/operationalAnalysis', name: '运营分析', routes: [ ], }, { path: '/costLibraryManagement', name: '成本库管理', routes: [ { path: '/costLibraryManagement/basicCostManagement', name: '基础成本管理', routes: [ ], }, { path: '/costLibraryManagement/projectCostManagement', name: '项目成本管理', routes: [ ], }, { path: '/costLibraryManagement/diseaseCostManagement', name: '病种成本管理', routes: [ ], }, { path: '/costLibraryManagement/clinicalPathwayCostManagement', name: '临床路径成本管理', routes: [ ], }, ], }, { path: '/reportMana', name: '报表管理', routes: [ ], }, ], npmClient: 'yarn', });