From 06b51d51e865dc4d2ea363769dfddfbb068bb0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=B5=A9?= Date: Wed, 15 Feb 2023 11:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B910=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sysConfig/index.js | 73 +++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 48 deletions(-) diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js index 4b5e53eb3..e9a596d71 100644 --- a/src/sysConfig/index.js +++ b/src/sysConfig/index.js @@ -1,80 +1,57 @@ -/** - * @description: 通用配置 - * @author: chenxiaoxi - * @date: 2018-09-04 17:47:46 - */ +/* @description: 通用配置 +* @author: chenxiaoxi +* @date: 2018-09-04 17:47:46 +*/ // 服务器地址 // const devIp = '39.98.140.126' -// const devInterfacePORT = '10005' -// const devIp = '192.168.10.6' +// const devInterfacePORT = '4202' +// const devIp = '192.168.1.42' +// const devInterfacePORT = '9999' +const devIp = '10.10.10.46' +const devInterfacePORT = '4202' +// const devIp = '10.0.3.11' +// const devIp = 'localhost' +// const devInterfacePORT = '10086' // const devIp = '62.234.136.153' // const devInterfacePORT = '8033' -const devIp = '10.19.11.243' -const devInterfacePORT = '4304' // 配置 idm 认证 const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri=' - -const ssoLogout = 'http://sso.foton.com.cn/logout?service=' // 配置 前端服务 -const devWebUrl = 'https://srms.foton.com.cn/#/' +const devWebUrl = 'http://62.234.136.153:8038/#/' // webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录) -const webLoginType = 'idm' +const webLoginType = 'dev' // 配置onlyOffice 前端服务 -const onlyOfficeUrl = 'http://10.100.5.116:8088' - -// 配置 kkFileView 前端服务 -const kkFileViewUrl = 'https://srms.foton.com.cn/preview' +// const onlyOfficeUrl = 'http://127.0.0.1:8080' +const onlyOfficeUrl = 'http://10.10.10.46:8103' // 云端端口号 const DEV_CLOUD_RES_INTERFACE_PORT = '7777' -const simpleFilePath = 'att/attFile/upload' -const multipleFilePath = 'att/attFile/uploadFiles' -const staticFilePath = '192.168.10.140:10010' -// const staticFilePath = '106.2.13.189:8888' -const staticPDFPath = '192.168.7.140' -const webSocket = '192.168.7.178' -// const enterprise = '' -const enterprise = 'SJZX' -const theme = 'theme-one' // 主题(theme-one浅蓝色,theme-two深蓝色) -const processPort = '17210' -/***************************************************************** - <<<<<<<<< 主题修改 >>>>>>>>> - - 1. 主题分为theme-one,theme-two两种 - 2. 修改assets/styles/style.less文件,注释theme-one/theme-two - 3. 将上方theme改为theme-one/theme-two - - *****************************************************************/ // 生产环境配置 -// const prodIp = '62.234.136.153' -// const prodInterfacePORT = '8033' -const prodIp = 'srms.foton.com.cn' -const prodInterfacePORT = '' +// const prodIp = '39.98.140.126' +// const prodInterfacePORT = '4201' +const prodIp = '10.10.10.46' +const prodInterfacePORT = '4202' +// const prodIp = 'slrs.foton.com.cn' +// const prodInterfacePORT = '' // 判断环境 const serverIP = process.env.NODE_ENV === 'production' ? prodIp : devIp -const interfacePORT = process.env.NODE_ENV === 'production' ? prodInterfacePORT : devInterfacePORT const CLOUD_RES_INTERFACE_PORT = process.env.NODE_ENV === 'production' ? DEV_CLOUD_RES_INTERFACE_PORT : DEV_CLOUD_RES_INTERFACE_PORT module.exports = { - baseUrl: 'https://' + serverIP + ':' + interfacePORT, + baseUrl: 'http://' + serverIP + ':' + interfacePORT, webLoginType: webLoginType, ssoLoginUrlDev: ssoLogin + devWebUrl, - ssoLogoutUrlDev: ssoLogout + devWebUrl, ssoLoginUrl: ssoLogin, onlyOfficeUrl: onlyOfficeUrl, - kkFileViewUrl: kkFileViewUrl, devWebUrl: devWebUrl, - serverUrl: 'https://' + serverIP, // 服务器IP地址 - interfaceUrl: 'https://' + serverIP + ':' + interfacePORT + '/api/', // 服务器端接口访问地址, + serverUrl: 'http://' + serverIP, // 服务器IP地址 + interfaceUrl: 'http://' + serverIP + ':' + interfacePORT + '/api/', // 服务器端接口访问地址, cloudResInterFaceUrl: 'http://' + serverIP + ':' + interfacePORT + '/busApi/', // 云端资源库服务器端接口访问地址, simpleUploadPath: 'api/' + simpleFilePath, // 单文件上传地址 multipleUploadPath: 'api/' + multipleFilePath, // 多文件上传地址 - staticFilePath: 'http://' + staticFilePath, - staticPDFPath: 'http://' + staticPDFPath, - webSocket: webSocket + ':' + devInterfacePORT + '/websocket/socketServer', // webSocket连接 enterprise: enterprise, // GQ广汽 SJZX数据中心 theme: theme, // 主题 processInterfaceURL: `http://${serverIP}:${processPort}/bat-wkflow`