diff --git a/public/development_address_config.js b/public/development_address_config.js index e5bcfd3..6fcda80 100644 --- a/public/development_address_config.js +++ b/public/development_address_config.js @@ -38,4 +38,7 @@ window._CONFIG["sendPostCode"] = "300300" window._CONFIG["lookExpressDomainURL"] = "http://localhost:21826/lookExpressInfo"; // 来款内部部署的ip -window._CONFIG["intranetUrl"] = "http://localhost:21825/"; \ No newline at end of file +window._CONFIG["intranetUrl"] = "http://localhost:21825/"; + +// 企业端ip +window._CONFIG["enterpriseTerminal"] = "http://localhost:3001/"; \ No newline at end of file diff --git a/public/local_production_address_config.js b/public/local_production_address_config.js index a410c4e..40e8a3f 100644 --- a/public/local_production_address_config.js +++ b/public/local_production_address_config.js @@ -40,4 +40,7 @@ window._CONFIG["sendPostCode"] = "300300" window._CONFIG["lookExpressDomainURL"] = "http://10.10.10.46:8066/lookExpressInfo"; // 来款内部部署的ip -window._CONFIG["intranetUrl"] = "http://10.10.10.46:8055/"; \ No newline at end of file +window._CONFIG["intranetUrl"] = "http://10.10.10.46:8055/"; + +// 企业端ip +window._CONFIG["enterpriseTerminal"] = "http://10.10.10.46:8066/"; \ No newline at end of file diff --git a/public/production_address_config.js b/public/production_address_config.js index 06f1eeb..8d77a9a 100644 --- a/public/production_address_config.js +++ b/public/production_address_config.js @@ -36,3 +36,6 @@ window._CONFIG["lookExpressDomainURL"] = "http://cwp.catarc.org.cn/lookExpressIn // 来款内部部署的ip window._CONFIG["intranetUrl"] = "http://10.12.8.1/"; + +// 企业端ip +window._CONFIG["enterpriseTerminal"] = "http://cwp.catarc.org.cn/"; diff --git a/src/api/api.js b/src/api/api.js index 499317d..52b4ef1 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -6,6 +6,8 @@ import {UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types' const loginIdmPlatform = (params) => postAction(`/sys/singleSignOn?code=${params.code}`) // idm 系统单点登录 通过token获取userInfo const getUserInfo = (params) => getAction(`/sys/user/getUserInfoByToken`, params) +// 单点登录企业端 +const ssLoginEnterTerminal = (params) => postAction('/company/adminGetToken', params) //角色管理 const addRole = (params)=>postAction('/sys/role/add',params) const editRole = (params)=>postAction('/sys/role/edit',params) @@ -198,6 +200,7 @@ export { getContactsByCompanyNoLimit, loginIdmPlatform, getUserInfo, + ssLoginEnterTerminal, companyAdminResetPassword, companyAdminEnable, queryCompanyInfoById diff --git a/src/components/tools/UserMenu.vue b/src/components/tools/UserMenu.vue index e2d134e..85fce25 100644 --- a/src/components/tools/UserMenu.vue +++ b/src/components/tools/UserMenu.vue @@ -1,5 +1,7 @@