From 9c90a0d8989b5b5ac19ac5c13966f2368fa4cf30 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 29 Feb 2024 14:05:03 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=A4=B4=E9=83=A8=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BC=81=E4=B8=9A=E7=AB=AF=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/development_address_config.js | 5 +++- public/local_production_address_config.js | 5 +++- public/production_address_config.js | 3 +++ src/api/api.js | 3 +++ src/components/tools/UserMenu.vue | 33 +++++++++++++++++++++++ 5 files changed, 47 insertions(+), 2 deletions(-) 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 @@