You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
4.2 KiB
61 lines
4.2 KiB
//根据环境,将apiURL赋不同的值 |
|
let IDM_APPROVE_URL = '' |
|
let IDM_LOGOUT_URL = '' |
|
let IAM_LOGIN = '' |
|
let UPDATE_PASSWORD_URL = '' |
|
let ENV_NOTICE = '' |
|
switch (process.env.VUE_APP_NODE_ENV) { |
|
case 'dev': //<!-- 开发环境 --> |
|
window.SITE_CONFIG['apiURL'] = 'http://localhost:8686/' |
|
ENV_NOTICE = '开发环境' |
|
break; |
|
case 'sit': //<!-- 集成测试环境 --> |
|
case 'uat': //<!-- 验收测试环境 -- http://10.43.4.132/jiefang-apigateway/ http://10.43.4.132:30686> |
|
window.SITE_CONFIG['apiURL'] = 'http://10.60.215.18:8686/'; |
|
IDM_APPROVE_URL = "https://iamuat.fawjiefang.com.cn/oauth2/rest/authz?response_type=code&client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483&domain=IdmDomain&state=xyz&scope=IdmResServer.UserProfile.me%20openid%20email%20phone%20profile&redirect_uri=http://10.60.215.18:8686/jiefang-admin/idm/validation"; |
|
IDM_LOGOUT_URL = "https://iamuat.fawjiefang.com.cn/oam/server/logout?end_url=https://iamuat.fawjiefang.com.cn/oauth2/rest/authz%3Fresponse_type=code%26client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483%26domain=IdmDomain%26state=xyz%26scope=IdmResServer.UserProfile.me%2bopenid%2bemail%2bphone%2bprofile%26redirect_uri=http://10.60.215.18:8686/jiefang-admin/idm/validation"; |
|
IAM_LOGIN = "https://iamuat.fawjiefang.com.cn/FawIdmCommonUtils/ssoLoginService/goLogout?client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483"; |
|
UPDATE_PASSWORD_URL = "https://iamuat.fawjiefang.com.cn/IAMEmployeeExtApp/#/home/user_update_password" |
|
ENV_NOTICE = '测试环境' |
|
break; |
|
case 'prod': //<!-- 生产环境 --> |
|
window.SITE_CONFIG['apiURL'] = 'http://10.60.205.40:8686/'; |
|
IDM_APPROVE_URL = "https://iam.fawjiefang.com.cn/oauth2/rest/authz?response_type=code&client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483&domain=IdmDomain&state=xyz&scope=IdmResServer.UserProfile.me%20openid%20email%20phone%20profile&redirect_uri=http://10.60.205.40:8686/jiefang-admin/idm/validation"; |
|
IDM_LOGOUT_URL = "https://iam.fawjiefang.com.cn/oam/server/logout?end_url=https://iam.fawjiefang.com.cn/oauth2/rest/authz%3Fresponse_type=code%26client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483%26domain=IdmDomain%26state=xyz%26scope=IdmResServer.UserProfile.me%2bopenid%2bemail%2bphone%2bprofile%26redirect_uri=http://10.60.205.40:8686/jiefang-admin/idm/validation"; |
|
IAM_LOGIN = "https://iam.fawjiefang.com.cn/FawIdmCommonUtils/ssoLoginService/goLogout?client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483"; |
|
UPDATE_PASSWORD_URL = "https://iam.fawjiefang.com.cn/IAMEmployeeExtApp/#/home/user_update_password" |
|
ENV_NOTICE = '生产环境' |
|
break; |
|
default: |
|
window.SITE_CONFIG['apiURL'] = 'http://localhost:8686/'; |
|
break; |
|
} |
|
|
|
const DOWNLOAD_URL = "http://localhost:8686/" |
|
const JMPS_BAS_URL = "jiefang-bas" |
|
const JMPS_ADMIN_URL = "jiefang-admin" |
|
const JMPS_FILE_URL = "jiefang-file" |
|
const JMPS_QTMS_URL = "jiefang-qtms" |
|
const PARTS_SUPPLIER = "http://10.60.22.13:8180/tqm-admin/publicsup/publicsup/findbypartgetsup" |
|
const serviceUrl = window.SITE_CONFIG['apiURL'] + "/" |
|
const serviceUrl1 = window.SITE_CONFIG['apiURL'] |
|
const partsSupplierUrl = "http://10.60.22.13:8180/tqm-admin/publicsup/publicsup/findbypartgetsup?" |
|
// const IDM_APPROVE_URL = "https://iam.fawjiefang.com.cn/oauth2/rest/authz?response_type=code&client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483&domain=IdmDomain&state=xyz&scope=IdmResServer.UserProfile.me%20openid%20email%20phone%20profile&redirect_uri=http://10.60.205.40:8686/jiefang-admin/idm/validation"; |
|
// const IDM_LOGOUT_URL = "https://iam.fawjiefang.com.cn/oam/server/logout?end_url=https://iamuat.fawjiefang.com.cn/oauth2/rest/authz%3Fresponse_type=code%26client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483%26domain=IdmDomain%26state=xyz%26scope=IdmResServer.UserProfile.me%2bopenid%2bemail%2bphone%2bprofile%26redirect_uri=http://10.60.205.40:8686/jiefang-admin/idm/validation"; |
|
// const IAM_LOGIN = "https://iam.fawjiefang.com.cn/FawIdmCommonUtils/ssoLoginService/goLogout?client_id=qakz5cr8r61gzzqq5sqioga8ulrfi483"; |
|
export default { |
|
JMPS_BAS_URL, |
|
JMPS_ADMIN_URL, |
|
JMPS_QTMS_URL, |
|
serviceUrl, |
|
serviceUrl1, |
|
JMPS_FILE_URL, |
|
DOWNLOAD_URL, |
|
PARTS_SUPPLIER, |
|
partsSupplierUrl, |
|
IDM_APPROVE_URL, |
|
IDM_LOGOUT_URL, |
|
IAM_LOGIN, |
|
UPDATE_PASSWORD_URL, |
|
ENV_NOTICE |
|
} |