diff --git a/src/api/company.js b/src/api/company.js index 7b39b5dbe..a940d8fc6 100644 --- a/src/api/company.js +++ b/src/api/company.js @@ -97,14 +97,6 @@ export function putCompanyMember(companyId, data) { data }); } -/** 导入单位成员信息 */ -export function importCompanyMember(companyId, data) { - return request({ - url: `/api/company/${companyId}/refUserInfo/import`, - method: 'post', - data - }); -} /** 删除单位成员信息 */ export function deleteCompanyMember(companyId, memberId) { return request({ @@ -172,3 +164,26 @@ export function deleteDeptInfo(deptId) { method: 'delete' }); } +/** 获取用户单位的部门信息 */ +export function getCompanyDeptInfo(companyId) { + return request({ + url: `/api/company/${companyId}/userDeparts`, + method: 'get' + }); +} +/** 导入单位成员信息 */ +export function importCompanyMember(companyId, data) { + return request({ + url: `/api/company/${companyId}/departUserInfo/import`, + method: 'post', + data + }); +} +/** 分页查询单位部门成员信息 */ +export function queryDeptInfoPaging(params) { + return request({ + url: `/api/company/dept/${params.deptId}/departUserInfo`, + method: 'get', + params + }); +} diff --git a/src/layout/components/Logout.vue b/src/layout/components/Logout.vue index 6cddc15be..1fa8f25be 100644 --- a/src/layout/components/Logout.vue +++ b/src/layout/components/Logout.vue @@ -11,7 +11,7 @@ {{ $t('global.personalDetails') }} - + {{ $t('global.exit') }} diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f5ca3dfd5..189bd54c1 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -18,7 +18,8 @@ const user = { wxId: '', wxUnionId: '', account: '', - projectDevice: '' + projectDevice: '', + companyId: '' }, mutations: { @@ -49,6 +50,9 @@ const user = { SET_ACCOUNT: (state, account) => { state.account = account; }, + SET_COMPANYID: (state, companyId) => { + state.companyId = companyId; + }, CLEAR_AUTO_PARAMS: () => { Cookies.remove('UserDesignName'); Cookies.remove('UserDesignToken'); @@ -123,6 +127,7 @@ const user = { commit('SET_NATIONCODE', user.nationcode); commit('SET_WXID', user.wxId); commit('SET_WXUNIONID', user.wxUnionId); + commit('SET_COMPANYID', user.companyId); resolve(user); }).catch(error => { reject(error); diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index bb19cc018..51ddbe296 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -6,7 +6,7 @@ export function getBaseUrl() { // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.129:9000'; // 旭强 // BASE_API = 'http://192.168.8.119:9000'; // 张赛 - // BASE_API = 'http://192.168.8.110:9000'; // 杜康 + // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 diff --git a/src/views/organization/index.vue b/src/views/organization/index.vue index e2ef3cdad..00cb41a22 100644 --- a/src/views/organization/index.vue +++ b/src/views/organization/index.vue @@ -1,6 +1,17 @@