123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- // 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,
- layout: {
- ...defaultLayout,
- title: '舜 德 数 据 (Sundata)',
- logo: '/images/logo_suo.png',
- },
- base: '/',
- publicPath: '/',
- model: {
- extraModels: [
- `${dictPath}#{"namespace":"dict"}`
- ]
- },
- // 显示标签页
- 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: '/wfEngine/bsmBusinessFlow', component: './flow-eng/wfDefine/flowList' },
- { path: '/wfEngine/moreTaskList', component: './flow-eng/wfOperate/moreTaskList' },
- { path: '/wfEngine/wfsWorkFlowManage', component: './flow-eng/wfManage/bsmFlowQueryList' },
- { path: '/wfEngine/bsmBusinessUnit', component: './flow-eng/wfDefine/bsmBusinessUnitMenu' },
- { path: '/wfEngine/wfUpgrade', component: './flow-eng/wfUpgrade/v2ToV3' },
- { 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: '/sovereign' , component: './rdpMng/Template/Coding/components/sovereign' },
- { path: '/policybank' , component: './rdpMng/Template/Coding/components/policybank' },
- { path: '/repurchasePledgeInfo' , component: './rdpMng/Template/Coding/components/repurchasePledgeInfo' },
- { path: '/norepurchasePledgeInfo' , component: './rdpMng/Template/Coding/components/norepurchasePledgeInfo' },
- { path: '/fcCommitment' , component: './rdpMng/Template/Coding/components/fcCommitment' },
- { path: '/ffRepo' , component: './rdpMng/Template/Coding/components/ffRepo' },
- { path: '/fcLoan' , component: './rdpMng/Template/Coding/components/fcLoan' },
- { path: '/fcOffSheet' , component: './rdpMng/Template/Coding/components/fcOffSheet' },
- { path: '/govFinancialAssetComp' , component: './rdpMng/Template/Coding/components/govFinancialAssetComp' },
- { path: '/faGlBalanceSheet' , component: './rdpMng/Template/Coding/components/faGlBalanceSheet' },
- { path: '/itItfRate' , component: './rdpMng/Template/Coding/components/itItfRate' },
- { path: '/rule_list' , component: './rwa_data_check/rule_list' },
- { path: '/diffconfig_list' , component: './rwa_data_check/diffconfig_list' },
- { path: '/result_list' , component: './rwa_data_check/result_list' },
- { path: '/product_list' , component: './rwa_calc_config_dataparam/product_list' },
- { path: '/1info_list' , component: './rwa_calc_config_002offbalanceprotype/info_list' },
- { path: '/CustomerTable' , component: './project/dataquality/CustomerTable'},
- { path: '/CollateralTable' , component: './project/dataquality/CollateralTable'},
- { path: '/GuaranteeTable' , component: './project/dataquality/GuaranteeTable'},
- { path: '/RepoRelatedTable' , component: './project/dataquality/RepoRelatedTable'},
- { path: '/PledgeRelatedTable' , component: './project/dataquality/PledgeRelatedTable'},
- { path: '/DiscountTable' , component: './project/dataquality/DiscountTable'},
- { path: '/OnCreditCard' , component: './project/dataquality/OnCreditCard'},
- { path: '/OffCreditCard' , component: './project/dataquality/OffCreditCard'},
- { path: '/InterbankDepositOrLendingTable' , component: './project/dataquality/InterbankDepositOrLendingTable'},
- { path: '/BondInvestment' , component: './project/dataquality/BondInvestment'},
- { path: '/NonStandardInvestment' , component: './project/dataquality/NonStandardInvestment'},
- { path: '/G4B_1' , component: './product/rwa/reportResult/G4B_1' },
- { path: '/G4B_2' , component: './product/rwa/reportResult/G4B_2' },
- { path: '/G4B_5' , component: './product/rwa/reportResult/G4B_5' },
- { path: '/GuaranteeTable' , component: './project/dataquality/GuaranteeTable' },
- {path: '/multidimensionalcreditrisk1' , component: './product/rwa/reportResult/multidimensionalcreditrisk1' },
- // 解析
- { 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: '/ListOfPublicSector', component: './project/businessconfig/ListOfPublicSector'},
- { path: '/DevelopBankList' , component: './project/businessconfig/DevelopBankList'},
- { path: '/GeneralSectorList' , component: './project/businessconfig/GeneralSectorList'},
- { path: '/SilverGuaranteeList' , component: './project/businessconfig/SilverGuaranteeList'},
- { path: '/AccountReconciliation' , component: './project/businessconfig/AccountReconciliation'},
- { path: '/RiskExposureClass' , component: './project/businessconfig/RiskExposureClass'},
- // 接口表
- { path: '/CustomerTable' , component: './project/dataquality/CustomerTable'},
- { path: '/CollateralTable' , component: './project/dataquality/CollateralTable'},
- { path: '/GuaranteeTable' , component: './project/dataquality/GuaranteeTable'},
- { path: '/RepoRelatedTable' , component: './project/dataquality/RepoRelatedTable'},
- { path: '/PledgeRelatedTable' , component: './project/dataquality/PledgeRelatedTable'},
- { path: '/DiscountTable' , component: './project/dataquality/DiscountTable'},
- { path: '/OnCreditCard' , component: './project/dataquality/OnCreditCard'},
- { path: '/OffCreditCard' , component: './project/dataquality/OffCreditCard'},
- { path: '/InterbankDepositOrLendingTable' , component: './project/dataquality/InterbankDepositOrLendingTable'},
- { path: '/BondInvestment' , component: './project/dataquality/BondInvestment'},
- { path: '/NonStandardInvestment' , component: './project/dataquality/NonStandardInvestment'},
- // 总账取数
- { path: '/product/rule' , component: './rwa_calc_config_acquisition/rule'},
- { path: '/diffconfig_list' , component: './rwa_data_check/diffconfig_list'},
- { path: '/result_list' , component: './rwa_data_check/result_list'},
- // 房地产贷款信息
- { path: '/realestate' , component: './rwa_calc_config_dataparam/realestate'},
- // 业务配置
- { path: '/bussiness' , component: './rwa_calc_config_dataparam/bussiness'},
- { path: '/product_list' , component: './rwa_calc_config_dataparam/product_list'},
- // 表内外风险暴漏
- { path: '/info' , component: './rwa_calc_config_001riskexposure/info'},
- // 合格缓释品认定
- { path: '/releasetoolinfo' , component: './rwa_calc_config_003regularrrcsrule/releasetoolinfo'},
- // 阶段配置
- { path: '/creditriskmeteringrule' , component: './product/rwa_calc_config_004rwa/creditriskmeteringrule'},
- { path: '/stageinformation' , component: './product/rwa_calc_config_004rwa/stageinformation'},
- { path: '/meteringmanagement' , component: './product/rwa_calc_config_004rwa/meteringmanagement'},
- { path: '/meteringparamdefine' , component: './product/rwa_calc_config_004rwa/meteringparamdefine'},
- { path: '/meteringtaskexecute' , component: './product/rwa_calc_config_004rwa/meteringtaskexecute'},
- // 报表定义
- { path: '/reportfillingconfig' , component: './product/report_form_config_reportcreater/reportfillingconfig'},
- { path: '/reportparamdefine' , component: './product/report_form_config_reportcreater/reportparamdefine'},
- { path: '/reportresultquery' , component: './product/report_form_config_reportcreater/reportresultquery'},
- // 数据质量管理
- { path: '/datascopemanage' , component: './product/dataquality/datascopemanage'},
- { path: '/dataqualityruledefine' , component: './product/dataquality/dataqualityruledefine'},
- // 数据补录
- { path: '/supplementtemplatedefine' , component: './product/datasupplementary/supplementtemplatedefine'},
- { path: '/supplementtaskmanagement' , component: './product/datasupplementary/supplementtaskmanagement'},
- { path: '/datasupplementation' , component: './product/datasupplementary/datasupplementation'},
- // 内管报表
- { path: '/accountmanagercreditriskoccupy' , component: './product/internal/accountmanagercreditriskoccupy'},
- { path: '/capitaloccupymonitor' , component: './product/internal/capitaloccupymonitor'},
- { path: '/corporateloanscustomerstop10' , component: './product/internal/corporateloanscustomerstop10'},
- { path: '/multidimensionalcreditrisk' , component: './product/internal/multidimensionalcreditrisk'},
- { path: '/productcreditriskcapitaloccupy' , component: './product/internal/productcreditriskcapitaloccupy'},
- { path: '/producttypecreditriskcapitaloccupy' , component: './product/internal/producttypecreditriskcapitaloccupy'},
- { path: '/withintablecorporateloans' , component: './product/internal/withintablecorporateloans'},
- ],
- /**
- proxy: {
- '/api/': {
- target: 'http://192.168.1.176: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,
- },
- ],
- */
- });
|