mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
提交
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
/**对应用户中心新的接口*/
|
||||
import ajax from '@/api/boe/boeApiAjax.js'
|
||||
import config from '@/config/index.js'
|
||||
import ajax from '../ajax';
|
||||
const baseURL = 'userbasic';
|
||||
|
||||
|
||||
/**
|
||||
* 获取用户的组织机构
|
||||
* organization_id
|
||||
*/
|
||||
const userParentOrg = function() {
|
||||
return ajax.post('/userbasic/org/userParentOrg',{});
|
||||
return ajax.post(baseURL,'/userbasic/org/userParentOrg',{});
|
||||
}
|
||||
|
||||
//https://u-pre.boe.com/userbasic/org/list
|
||||
@@ -14,20 +17,20 @@ const userParentOrg = function() {
|
||||
* 根据关键字查询机构
|
||||
*/
|
||||
const findOrgsByKeyword = function(keyword) {
|
||||
return ajax.postJson('/userbasic/org/list',{keyword});
|
||||
return ajax.postJson(baseURL,'/userbasic/org/list',{keyword});
|
||||
}
|
||||
|
||||
const findOrgTreeByOrgId = function(orgId) {
|
||||
return ajax.postJson('/userbasic/org/childOrgs',{orgId});
|
||||
return ajax.postJson(baseURL,'/userbasic/org/childOrgs',{orgId});
|
||||
}
|
||||
|
||||
const getOrgInfo = function(orgId) {
|
||||
return ajax.postJson('/userbasic/org/info',{orgId});
|
||||
return ajax.postJson(baseURL,'/userbasic/org/info',{orgId});
|
||||
}
|
||||
|
||||
/**根据用户id获取用户的信息*/
|
||||
const getUserInfoById = function(id) {
|
||||
return ajax.postJson('/userbasic/user/list',{id});
|
||||
return ajax.postJson(baseURL,'/userbasic/user/list',{id});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,7 +38,7 @@ const getUserInfoById = function(id) {
|
||||
* 获取当前用户受众信息
|
||||
*/
|
||||
const getUserCrowds = function() {
|
||||
return ajax.postJson('/userbasic/audience/userAudiences',{});
|
||||
return ajax.postJson(baseURL,'/userbasic/audience/userAudiences',{});
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +46,7 @@ const getUserCrowds = function() {
|
||||
* 获取hrbp数据
|
||||
*/
|
||||
const getOrgHrbpInfo = function(orgId) {
|
||||
return ajax.postJson('/userbasic/org/orgHrbpInfo',{orgId});
|
||||
return ajax.postJson(baseURL,'/userbasic/org/orgHrbpInfo',{orgId});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -51,7 +54,7 @@ const getOrgHrbpInfo = function(orgId) {
|
||||
* {newPassword:'',oldPassword:''}
|
||||
*/
|
||||
const modifyPassword = function(data) {
|
||||
return ajax.postJson('/userbasic/user/resetPassword',data);
|
||||
return ajax.postJson(baseURL,'/userbasic/user/resetPassword',data);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user