Initial commit

This commit is contained in:
linxd
2025-06-16 09:25:19 +08:00
commit d33c9cc7d3
391 changed files with 26497 additions and 0 deletions

45
config/config.UAT.ts Normal file
View File

@ -0,0 +1,45 @@
import { defineConfig } from 'umi';
import proxy from './proxy';
export default defineConfig({
proxy: proxy['UAT'],
define:{
//商城2.0跳转地址
REACT_APP_MALL_V2_URL:'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
//各系统跳转参数
REACT_APP_CLIENT_KEY : 'KgPEkttG',
// REACT_APP_CLIENT_SECRET :'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
//密码加密参数
REACT_APP_PASSWORD_CIPHERMODE:'1',
REACT_APP_PASSWORD_PUBLICKEY:'0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
//当前环境
START_ENV:'UAT',
//询价查看报价跳转地址
// REACT_APP_XUNJIA_REDIRECT: 'http://10.0.204.215:8280/provider_uat',
//询价-查看报价详情-虚拟用户uid
REACT_APP_XUNJIA_UID: 'admin_entrance',
// //智慧客服ws地址
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.158:18022/api/api/biz-customer-service',
//智慧客服用户中心地址
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:18022/auth/oauth/authorize?response_type=code',
//智慧客服client_id
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
//智慧客服地址
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
// //智慧客服文档中心查看图片地址
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/',
// //智慧客服加密公钥私钥ciphercode
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
},
});

45
config/config.dev.ts Normal file
View File

@ -0,0 +1,45 @@
import { defineConfig } from 'umi';
import proxy from './proxy';
export default defineConfig({
proxy: proxy['dev'],
define: {
//商城2.0跳转地址
REACT_APP_MALL_V2_URL: 'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
//各系统跳转参数
REACT_APP_CLIENT_KEY: 'KgPEkttG',
// REACT_APP_CLIENT_SECRET: 'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
//密码加密参数
REACT_APP_PASSWORD_CIPHERMODE: '1',
REACT_APP_PASSWORD_PUBLICKEY: '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
//当前环境
START_ENV: 'DEV',
//询价查看报价跳转地址
// REACT_APP_XUNJIA_REDIRECT: 'http://10.0.204.215:8080/provider_dev',
//询价-查看报价详情-虚拟用户uid
REACT_APP_XUNJIA_UID: 'admin_entrance',
//智慧客服用户中心地址
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
//智慧客服client_id
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
//智慧客服地址
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
// //智慧客服ws地址
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.37.148:18022/api/api/biz-customer-service',
// //智慧客服文档中心查看图片地址
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/',
// //智慧客服加密公钥私钥ciphercode
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
},
});

43
config/config.prod.ts Normal file
View File

@ -0,0 +1,43 @@
import { defineConfig } from 'umi';
import proxy from './proxy';
export default defineConfig({
proxy: proxy['prod'],
define:{
//商城2.0跳转地址
REACT_APP_MALL_V2_URL:'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
//各系统跳转参数
REACT_APP_CLIENT_KEY : 'KgPEkttG',
// REACT_APP_CLIENT_SECRET :'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
//密码加密参数
REACT_APP_PASSWORD_CIPHERMODE:'1',
REACT_APP_PASSWORD_PUBLICKEY:'04819CF427F9150FEEBD91E8D2346F203FC47312D212022A967D8372EA30B9581CCEEFCE2670BDDAF2E8DA1620EA73948126078ED9FF9773AA3A94EE6C80035A18',
//当前环境
START_ENV:'PROD',
//询价查看报价跳转地址
// REACT_APP_XUNJIA_REDIRECT: 'https://60.10.26.178/provider',
//询价-查看报价详情-虚拟用户uid
REACT_APP_XUNJIA_UID: 'admin_entrance',
//智慧客服用户中心地址
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'https://uscm.chinaunicom.cn:18023/auth/oauth/authorize?response_type=code',
//智慧客服client_id
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
//智慧客服地址
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'https://uscm.chinaunicom.cn:18011',
// //智慧客服ws地址
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://uscm.unicom.local:18022/api/api/biz-customer-service',
// //智慧客服文档中心查看图片地址
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.xx-pbc.cos.tg.unicom.local/349553515466:mall/',
// //智慧客服加密公钥私钥ciphercode
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
},
});

43
config/config.sim.ts Normal file
View File

@ -0,0 +1,43 @@
import { defineConfig } from 'umi';
import proxy from './proxy';
export default defineConfig({
proxy: proxy['sim'],
define: {
//商城2.0跳转地址
REACT_APP_MALL_V2_URL: 'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
//各系统跳转参数
REACT_APP_CLIENT_KEY: 'KgPEkttG',
// REACT_APP_CLIENT_SECRET: 'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
//密码加密参数
REACT_APP_PASSWORD_CIPHERMODE: '1',
REACT_APP_PASSWORD_PUBLICKEY: '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
//当前环境
START_ENV: 'sim',
//询价查看报价跳转地址
// REACT_APP_XUNJIA_REDIRECT: 'http://10.0.204.215:8080/provider',
//询价-查看报价详情-虚拟用户uid
REACT_APP_XUNJIA_UID: 'admin_entrance',
//智慧客服用户中心地址
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
//智慧客服client_id
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
//智慧客服地址
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
// //智慧客服ws地址
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.54:18022/api/api/biz-customer-service',
// //智慧客服文档中心查看图片地址
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.xx-pbc.cos.tg.unicom.local/349553515466:mall/',
// //智慧客服加密公钥私钥ciphercode
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
},
});

38
config/config.ts Normal file
View File

@ -0,0 +1,38 @@
import { defineConfig } from 'umi';
import defaultSettings from './defaultSettings';
// import proxy from './proxy';
import PageRoutes from './router.config'
const { REACT_APP_ENV } = process.env;
export default defineConfig({
hash: true,
antd: {},
dva: {
hmr: true,
},
locale: {
default: 'zh-CN',
antd: true,
// default true, when it is true, will use `navigator.language` overwrite default
baseNavigator: true,
},
//全局加载样式
// dynamicImport: {
// loading: '@/components/PageLoading/index',
// },
targets: {
ie: 11,
},
// umi routes: https://umijs.org/docs/routing
routes: PageRoutes,
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
theme: {
// ...darkTheme,
'primary-color': defaultSettings.primaryColor,
},
// @ts-ignore
title: false,
ignoreMomentLocale: true,
manifest: {
basePath: '/',
},
});

25
config/defaultSettings.ts Normal file
View File

@ -0,0 +1,25 @@
import { Settings as ProSettings } from '@ant-design/pro-layout';
type DefaultSettings = ProSettings & {
pwa: boolean;
};
const proSettings: DefaultSettings = {
navTheme: 'light',
primaryColor: '#b30000',
layout: 'side',
contentWidth: 'Fluid',
fixedHeader: false,
fixSiderbar: true,
colorWeak: false,
menu: {
locale: true,
},
title: '招投标系统',
pwa: false,
iconfontUrl: '',
};
export type { DefaultSettings };
export default proSettings;

98
config/proxy.ts Normal file
View File

@ -0,0 +1,98 @@
export default {
dev: {
// '/api/wfap/v1/audit/bill/find/by/procid': {
// target: 'http://10.242.37.148:8891/',//审批单 dev环境自动审批暂时用不到
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/api/*': {
// target: 'http://10.242.37.148:18022',//连接天宫的ng
target: 'http://localhost:3000',//连接天宫的ng
changeOrigin: true,
pathRewrite: { '^': '' },
},
},
UAT: {
'/api/core-service-ebtp-userinfo': {
target: 'http://localhost:18023',
changeOrigin: true,
pathRewrite: { '/api/core-service-ebtp-userinfo': '' },
},
'/api/biz-service-ebtp-bid': {
target: 'http://localhost:18003',
changeOrigin: true,
pathRewrite: { 'biz-service-ebtp-bid': '' },
},
'/api/biz-service-ebtp-extend': {
target: 'http://localhost:18018',
changeOrigin: true,
pathRewrite: { '/api/biz-service-ebtp-extend': '' },
},
'/api/biz-service-ebtp-project': {
target: 'http://localhost:18012',
changeOrigin: true,
pathRewrite: { '/api/biz-service-ebtp-project': '' },
},
'/api/sys-manager-ebtp-project': {
target: 'http://localhost:18030',
changeOrigin: true,
pathRewrite: { '/api/sys-manager-ebtp-project': '' },
},
'/api/biz-service-ebtp-rsms': {
target: 'http://localhost:18014',
changeOrigin: true,
pathRewrite: { '/api/biz-service-ebtp-rsms': '' },
},
'/api/biz-service-ebtp-agency': {
target: 'http://localhost:18099',
changeOrigin: true,
pathRewrite: { '/api/biz-service-ebtp-agency': '' },
},
'/api/biz-supplier-manage': {
target: 'http://localhost:18096',
changeOrigin: true,
pathRewrite: { '/api/biz-supplier-manage': '' },
}
// '/api/wfap/v1/audit/bill/find/by/procid': {
// target: 'http://10.242.31.158:8891/',//审批单 uat环境自动审批暂时用不到
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
// '/living/api/*': {
// // target: 'https://ai.cubigdata.cn:5001',//连接天宫的ng
// target: 'http://localhost:3000',//连接天宫的ng
// changeOrigin: true,
// pathRewrite: { '/living/api': '' },
// },
// '/api/*': {
// target: 'http://10.242.31.158:18022',//连接天宫的ng
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
// '/doc/v1.0/*': {
// target: 'http://10.242.31.158:8806',//连接天宫的ng
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
},
sim: {
// '/api/wfap/v1/audit/bill/find/by/procid': {
// target: 'http://10.242.31.158:8891/',//审批单 uat环境自动审批暂时用不到
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/api/*': {
target: 'http://10.242.31.54:18022',//连接天宫的ng
changeOrigin: true,
pathRewrite: { '^': '' },
},
},
prod: {
'/api/*': {
target: 'http://uscm.unicom.local:18022',//连接天宫的ng
changeOrigin: true,
pathRewrite: { '^': '' },
},
}
};

122
config/router.config.ts Normal file
View File

@ -0,0 +1,122 @@
import menuaZhaoBiao from './ZhaoBiao/router_menubProject.config';
import transfer from './router_transfer';
import home from './HomePage/router_home';
import juryRoom from './JuryRoom/router_menuJury.config';
import approvalForm from './router_approval_form';
import partyMemberTopic from './router_partyMemberTopic';
import highQualityOperation from './router_highQualityOperation';
import { elecBidEvaluation, monitor, monitorScreen } from './router_elecEvaluation';
export default [
//========================================================================登陆
...transfer,//跳转、登陆
{
path: '/userformal',
// component: '../layouts/UserLayout',
routes: [
{
name: 'login',
path: '/userformal/login',
component: './userformal/login',
},
],
},
{
path: '/loading',
routes: [
{
path: '/loading',
component: './Loading',
},
],
},
//日历组件暂时用
// {
// path: '/Calendar',
// component: './MainPage/ProjectManager/components/CalendarForm',
// },
//视频播放-视频播放列表(暂时用)
{
path: '/ElecEvaluation/Monitor/videoplay',
component: './ElecEvaluation/Monitor/RoomDetail/videoplay',
},
//富文本组件
// {
// path: '/editor',
// component: './MainPage/ProjectManager/components/WangEditor',
// },
//401错误页
{
exact: true,
path: '/401',
component: './401',
},
{
exact: true,
path: '/404',
component: './404',
},
//==========================================================================菜单路由
{
path: '/',
component: '../layouts/SecurityLayout',
routes: [
{
path: '/',
component: '../layouts/BasicLayout',
//authority: ['ebtp-expert'],
routes: [
{//专家登陆地址
path: '/',
redirect: '/userexpert/login',
},
...home,//各角色主页
...menuaZhaoBiao,//项目菜单所有路由
...elecBidEvaluation,//电子评标室-监控大屏
{//问卷调查
name: 'Questionnaire',
icon: 'UnorderedListOutlined',
path: '/Questionnaire',
routes: [
{//问卷调查
name: 'QuestionList',
path: '/Questionnaire/questionList',
component: './Questionnaire/questionList'
},
{//问卷调查新增
name: 'questionAdd',
path: '/Questionnaire/questionAdd',
component: './Questionnaire/questionAdd'
},
{//问卷统计
name: 'QuestionStatistics',
path: '/Questionnaire/questionStatistics',
component: './Questionnaire/questionStatistics'
},
],
},
{//我的工作台
name: 'workbench',
icon: 'DesktopOutlined',
//authority: ['ebtp-expert'],
path: '/workbench',
routes: [
{ name: 'commonFiles', path: '/workbench/files', component: './workbench/files/components/FilesList' },//共享文档下载-所有角色
{ name: 'commonFilesManage', path: '/workbench/filesManage', component: './workbench/filesManage/components/filesManage' },//共享文档管理-系统管理员
]
},
{ name: 'systemMessage', path: '/SystemMessage/message', component: './SystemMessage/message' },//系统消息-所有角色
{
component: './404',
},
],
},
{
component: './404',
},
],
},
{
component: './404',
},
];