123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- /*
- * @Author: your name
- * @Date: 2022-01-07 10:04:20
- * @LastEditTime: 2024-12-03 11:09:39
- * @LastEditors: code4eat awesomedema@gmail.com
- * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- * @FilePath: /KC-MiddlePlatform/config/config.ts
- */
- import { defineConfig } from 'umi';
- import proxy from './proxy';
- const { REACT_APP_ENV } = process.env;
- export default defineConfig({
- hash:true,
- nodeModulesTransform: {
- type: 'none',
- },
- title: false,
- publicPath: '/',
- dva: {
- immer: true,
- hmr: true,
- },
- antd: {
- config: {
- prefixCls: 'kcmp-ant',
- // getPopupContainer:(triggerNode:HTMLElement)=>triggerNode
- },
- },
- lessLoader: {
- modifyVars: { '@ant-prefix': 'kcmp-ant', 'root-entry-name': 'default' },
- },
- theme: {
- '@primary-color': '#3376FE',
- '@primary-color-hover': '#3376FE',
- // '@root-entry-name':'root-entry-name'
- },
- routes: [
- {
- path: '/',
- component: '@/layouts/index.tsx',
- routes: [
- {
- path: '/app1',
- microApp: 'app1',
- // access: 'canVisitThisApp'
- microAppProps: {
- autoSetLoading: true,
- autoCaptureError: true,
- },
- },
- // {
- // path: '/costMana',
- // microApp: 'costMana',
- // },
- {
- path: '/PFMBackC',
- microApp: 'PFMBackC',
- microAppProps: {
- autoSetLoading: true,
- autoCaptureError: true,
- },
- },
- {
- path: '/reviewMana',
- microApp: 'reviewMana',
- microAppProps: {
- autoSetLoading: true,
- autoCaptureError: true,
- },
- },
- {
- path: '/budgetManaSystem',
- microApp: 'budgetManaSystem',
- microAppProps: {
- // autoSetLoading: true,
- autoCaptureError: true,
- },
- },
- {
- path: '/pfmBackMana',
- microApp: 'pfmBackMana',
- microAppProps: {
- autoSetLoading: true,
- autoCaptureError: true,
- },
- },
- {
- path: '/CostAccountingSys',
- microApp: 'CostAccountingSys',
- microAppProps: {
- autoCaptureError: true,
- //loader: (loading:boolean) => <div>loading</div>,
- },
- },
- {
- path: '/MediResourceManaSys',
- microApp: 'MediResourceManaSys',
- microAppProps: {
- autoCaptureError: true,
- //loader: (loading:boolean) => <div>loading</div>,
- },
- },
- {
- path: '/MedicalWisdomCheckSys',
- microApp: 'MedicalWisdomCheckSys',
- microAppProps: {
- autoCaptureError: true,
- //loader: (loading:boolean) => <div>loading</div>,
- },
- },
- {
- path: '/devServer',
- microApp: 'devServer',
- microAppProps: {
- autoCaptureError: true,
- //loader: (loading:boolean) => <div>loading</div>,
- },
- },
- {
- path: '/personnelManaSystem',
- microApp: 'personnelManaSystem',
- microAppProps: {
- autoCaptureError: true,
- //loader: (loading:boolean) => <div>loading</div>,
- },
- },
- {
- path: '/nursingWorkersManaSystem',
- microApp: 'nursingWorkersManaSystem',
- microAppProps: {
- autoCaptureError: true,
- //loader: (loading:boolean) => <div>loading</div>,
- },
- },
- {
- path: '/channelIndex/channelIndexOne',
- component: '@/pages/channelIndex/channelIndexOne/index.tsx',
- },
- {
- path: '/index',
- title: '欢迎进入医管平台',
- component: '@/pages/index/index.tsx',
- },
- {
- path: '/noAccess',
- component: './noAccess',
- },
- {
- title: '精益管管理中台',
- path: '/platform',
- component: '@/pages/platform/_layout.tsx',
- routes: [
- {
- path: '/platform/sqlEditer',
- component: '@/pages/platform/sqlediter/index.tsx',
- },
- {
- path: '/platform/setting',
- routes: [
- {
- path: '/platform/setting/userManage',
- component: '@/pages/platform/setting/userManage/index.tsx',
- },
- {
- path: '/platform/setting/hospManage',
- component: '@/pages/platform/setting/hospManage/index.tsx',
- },
- {
- path: '/platform/setting/menuManage',
- component: '@/pages/platform/setting/menuManage/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/roleManage',
- component: '@/pages/platform/setting/roleManage/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- // {
- // path: '/platform/setting/reports',
- // component: '@/pages/platform/setting/reports/index.tsx',
- // },
- {
- path: '/platform/setting/departmentMana',
- component: '@/pages/platform/setting/departmentMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/pubDicTypeMana',
- component: '@/pages/platform/setting/pubDicTypeMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/hospParamsMana',
- component: '@/pages/platform/setting/hospParamsMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/pubDicMana/:type',
- component: '@/pages/platform/setting/pubDicMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/indicatorMana',
- component: '@/pages/platform/setting/indicatorMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/paramsMana',
- component: '@/pages/platform/setting/paramsMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/systemNavMana',
- component: '@/pages/platform/setting/systemNavMana/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/notificationTemplate',
- component: '@/pages/platform/setting/notificationTemplate/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- {
- path: '/platform/setting/kcClassification',
- component: '@/pages/platform/setting/kcClassification/index.tsx',
- wrappers: [
- '@/wrappers/auth',
- ],
- },
- ],
- },
- ],
- },
- {
- path: '/personalCenter',
- component: '@/pages/personalCenter/index.tsx',
- // wrappers: [
- // '@/wrappers/auth',
- // ],
- },
- { path: '/login', layout: false, component: '@/pages/login/index' },
- ],
- },
- ],
- // hash:true,
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
- fastRefresh: {},
- layout: {
- layout: 'top',
- },
- // mfsu: {},
- qiankun: {
- master: {
- sandbox: {
- // strictStyleIsolation:true,
- // experimentalStyleIsolation: true, // 试验性
- // experimentalSandbox: 'proxy'
- },
- },
- },
- });
|