mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
提交修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
import ajax from '../ajax';
|
||||
/**对应用户中心新的接口*/
|
||||
import ajax from './boeAjax';
|
||||
//const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
|
||||
const baseURL ="userbasic";
|
||||
const baseURL ="/userbasic";
|
||||
|
||||
/**
|
||||
* 获取用户的组织机构
|
||||
@@ -11,7 +11,43 @@ const userParentOrg = function() {
|
||||
return ajax.post(baseURL,'/org/userParentOrg',{});
|
||||
}
|
||||
|
||||
//https://u-pre.boe.com/userbasic/org/list
|
||||
/**
|
||||
* 根据关键字查询机构
|
||||
*/
|
||||
const findOrgsByKeyword = function(keyword) {
|
||||
return ajax.postJson(baseURL,'/org/list',{keyword});
|
||||
}
|
||||
|
||||
const findOrgTreeByOrgId = function(orgId) {
|
||||
return ajax.postJson(baseURL,'/org/childOrgs',{orgId});
|
||||
}
|
||||
|
||||
/**根据用户id获取用户的信息*/
|
||||
const getUserInfoById = function(id) {
|
||||
return ajax.postJson(baseURL,'/user/list',{id});
|
||||
}
|
||||
|
||||
/**
|
||||
* https://u-pre.boe.com/userbasic/audience/userAudiences
|
||||
* 获取当前用户受众信息
|
||||
*/
|
||||
const getUserCrowds = function() {
|
||||
return ajax.postJson(baseURL,'/audience/userAudiences',{});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取hrbp数据
|
||||
*/
|
||||
const getOrgHrbpInfo = function(orgId) {
|
||||
return ajax.postJson(baseURL,'/org/orgHrbpInfo',{orgId});
|
||||
}
|
||||
|
||||
export default {
|
||||
userParentOrg
|
||||
userParentOrg,
|
||||
findOrgsByKeyword,
|
||||
findOrgTreeByOrgId,
|
||||
getUserInfoById,
|
||||
getUserCrowds,
|
||||
getOrgHrbpInfo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user