123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- // https://umijs.org/config/
- import { defineConfig } from '@umijs/max';
- import { defaultConfig } from '@sundata/fg-common';
- import defaultLayout from '../config/defaultLayout';
- import path from 'path';
- const OPENAPI_MODULE = process.env.OPENAPI_MODULE;
- const OPENAPI_NAMESPACE = OPENAPI_MODULE?.charAt(0).toUpperCase().concat(OPENAPI_MODULE?.slice(1));
- const dictPath = path.resolve('./node_modules/@sundata/ui-frame/es/models/dict.js').replace(/\\/g, '/');
- export default defineConfig({
- ...(defaultConfig as any),
- layout: {
- ...defaultLayout,
- title: '舜 德 数 据 (Sundata)',
- logo: '/images/logo_suo.png',
- },
- base: '/',
- publicPath: '/',
- model: {
- extraModels: [
- `${dictPath}#{"namespace":"dict"}`
- ]
- },
- targets: {
- chrome: 86,
- },
- // 显示标签页
- keepalive: [/./],
- tabsLayout: {
- hasDropdown: true,
- hasFixedHeader: true,
- hasCustomTabs: true
- },
- // 所有页面需要在这里配置path与component的关系,path与菜单对应,以便菜单能够找到页面
- // 不能使用约定式路由以省略此配置,因为这样无法指定登录页面不使用layout
- // umi routes: https://umijs.org/docs/routing
- routes: [
- { path: '/welcome', name: '欢迎', component: './Welcome' },
- { path: '/', redirect: '/welcome' },
- { path: '/user/login', layout: false, component: './Login' },
- { path: '/admin/rolemanage', component: './authMng/RoleMng/roleMng' },
- { path: '/admin/usermanage', component: './authMng/UserMng/userMng' },
- { path: '/admin/funmanage', component: './authMng/FuncMng/funMng' },
- { path: '/admin/funorgmanage', component: './authMng/FuncMng/funOrgMng' },
- { path: '/admin/batchmanage/batchcontrol', component: './batchMng/BatchControl/batchControl' },
- { path: '/admin/batchmanage/batchlog', component: './batchMng/BatchLog/batchLog' },
- { path: '/admin/batchmanage/batchinfo', component: './batchMng/BatchInfo/batchInfo' },
- { path: '/admin/batchmanage/batchgroup', component: './batchMng/BatchGroup/batchGroup' },
- { path: '/admin/batchmanage/batchdispatch',component: './batchMng/BatchDispatch/batchDispatch'},
- { path: '/admin/batchmanage/batchdispatchtree',component: './batchMng/BatchDispatch/batchDispatchTree'},
- { path: '/admin/batchmanage/batchstate', component: './batchMng/BatchState/batchState' },
- { path: '/admin/batchmanage/batchrunstate', component: './batchMng/BatchState/batchRunState' },
- { path: '/admin/excelmanage/impandauditp', component: './idataMng/ExcelMng/impandauditp' },
- { path: '/admin/excelmanage/importdataQuery',component: './idataMng/ExcelMng/importdataQuery',},
- { path: '/admin/excelmanage/impmtype', component: './idataMng/ExcelMng/excelMng' },
- { path: '/admin/messgsendmanage/messconfig', component: './pubMng/MessgSendMng/messConfig' },
- { path: '/admin/msgmanage/msgmng', component: './pubMng/MsgMng/msgManage' },
- { path: '/admin/excelmanage/rpt', component: './pubMng/ReportMng/reportTemplate' },
- { path: '/admin/sqleditor/dataclassdef', component: './pubMng/SqlEditMng/dataClassDef' },
- { path: '/admin/sqleditor/defOperate', component: './pubMng/SqlEditMng/defOperate' },
- { path: '/admin/sqleditor/variableDefine', component: './pubMng/SqlEditMng/variableDefine' },
- { path: '/admin/sqleditor/editorDefine', component: './pubMng/SqlEditMng/editorDefine' },
- { path: '/admin/sqllogmanage', component: './pubMng/SqlLogMng/sqlLog' },
- { path: '/admin/holidaymanage', component: './pubMng/Holiday/holiday' },
- { path: '/admin/orgmanage', component: './sysMng/OrgMng/orgMng' },
- { path: '/admin/nounmanage/PARAM/:nounsuper', component: './sysMng/NounMng/sysNoun' },
- { path: '/admin/nounorg', component: './sysMng/NounMng/sysNounOrgInit' },
- { path: '/admin/innercodemanage', component: './sysMng/InnerMng/sysInnerCode' },
- { path: '/admin/syslogmanage', component: './sysMng/LogMng/logQuery' },
- { path: '/example/complexMaint/PARAM/:nounsuper', component: './example/ComplexMaint' },
- { path: '/product/prodBase/initQueryImport', component: './prodBase/ProdBase/prodQueryImport' },
- { path: '/product/prodBase/configSelection', component: './prodBase/confSelectEng/configSelection' },
- { path: '/product/prodBase/ruleflow', component: './rf-eng/rfDefine/ruleList'},
- { path: '/rfEngine/rfDefine/toRuleNodeRelaList', component: './rf-eng/rfDefine/ruleNodeRelaList'},
- { path: '/rfEngine/rfAnalyse/init', component: './rf-eng/rfAnalyse/rfJobRunAnalyse'},
- { path: '/rfEngine/rfAnalyse/initTestRt', component: './rf-eng/rfAnalyse/rfJobRunAnalyseShow'},
- { path: '/rfEngine/rfUpgrade', component: './rf-eng/rfUpgrade/v2ToV3' },
- { path: '/product/commEng/tradeInfo', component: './commEng/tradeEng/tradeDetailLayOut'},
- { path: '/product/commEng/tradeMessage', component: './commEng/tradeEng/tradeMessage'},
- { path: '/product/commEng/commInfo', component: './commEng/communEng/commDetailLayOut'},
- { path: '/product/commEng/commMessage', component: './commEng/communEng/commMessage'},
- // 配置
- { path: '/product/rdp/functionInfoManage', component: './rdpMng/Settings/FuncMng' },
- { path: '/product/rdp/logicsInfoManage', component: './rdpMng/Settings/LogicsMng' },
- { path: '/product/rdp/logicInfoManage', component: './rdpMng/Settings/LogicMng' },
- { path: '/product/rdp/fastDemo', component: './rdpMng/Settings/FastDemo' },
- { path: '/product/rdp/v2tov3', component: './rdpMng/Settings/V2ToV3' },
- // 解析
- { path: '/rdp/rdpAnalysis/analTemplate/query/:prodCode', component: './rdpMng/Template/QueryList/queryList' },
- { path: '/rdp/rdpAnalysis/analTemplate/maintain/:prodCode', component: './rdpMng/Template/InfoMaintain/infoMaintain' },
- { path: '/rdp/rdpAnalysis/analTemplate/tabFrame/:prodCode', component: './rdpMng/Template/TabFrame/tabFrame' },
- // 数据配置功能
- { path: '/internalEvaluation/datasources', component: './internalEvaluation/configuration/datasources' },
- { path: '/internalEvaluation/datasetconfig', component: './internalEvaluation/configuration/datasetconfig' },
- { path: '/internalEvaluation/indexconfig', component: './internalEvaluation/configuration/indexconfig' },
- { path: '/internalEvaluation/modelconfig', component: './internalEvaluation/configuration/modelconfig' },
- { path: '/internalEvaluation/InterfacePage', component: './internalEvaluation/configuration/InterfacePage' },
- { path: '/internalEvaluation/RulePage', component: './internalEvaluation/configuration/RulePage' },
- { path: '/internalEvaluation/indexlistconfig', component: './internalEvaluation/configuration/indexlistconfig' },
- { path: '/internalEvaluation/riskcontrolstrategy', component: './internalEvaluation/configuration/riskcontrolstrategy' },
- // 统计报表
- // { path: '/internalEvaluation/preloan/irbfcreditrecord', component: './internalEvaluation/statisticalreport/preloan/irbfcreditrecord' },
- ],
- proxy: {
- '/api/': {
- target: 'http://localhost:8080',
- changeOrigin: true,
- pathRewrite: { '^/api': '' },
- },
- },
- /**
- // 需要自动生成代码时再放开,否则不启动后台服务时会报错
- openAPI: [
- {
- requestLibPath: `import { baseFun} from '@sundata/ui-frame';\nimport { ${OPENAPI_NAMESPACE} } from './typings';\nconst request = baseFun.request`,
- schemaPath: 'http://localhost:8080/v3/api-docs',
- apiPrefix: 'baseFun.urlPrefix',
- projectName: OPENAPI_MODULE,
- namespace: OPENAPI_NAMESPACE,
- mock: false,
- },
- ],
- */
- });
|