mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-19 07:46:43 +08:00
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
import ajax2 from "../unionAjax.js";
|
||
|
||
export const STUDENT_LIST = "/manageApi/admin/student/getStudent";
|
||
export const USER_LIST_PAGE = "/manageApi/admin/thirdApi/user/list";
|
||
export const ORG_LIST = "/manageApi/admin/thirdApi/org/list";
|
||
export const ORG_CHILD_LIST = "/manageApi/admin/thirdApi/org/info";
|
||
// 查询受众中的用户列表
|
||
export const AUDIENCE_LIST = "/userbasic/audience/memberList";
|
||
|
||
export const USER_AUDIENCES = "/manageApi/admin/thirdApi/audience/userAudiences";
|
||
export const fetchUserAudiences = (params) =>
|
||
ajax2.get1(USER_AUDIENCES, params);
|
||
// 保存学员信息(走 manageApi,POST)
|
||
export const saveStu = (data) =>
|
||
ajax2.postJson("/manageApi", "/admin/student/addStudent", data);
|
||
|
||
// 获取项目学员列表(走 manageApi,GET)弃用
|
||
export const fetchProjectStudents = (params = {}) => {
|
||
return ajax2.get1(STUDENT_LIST, params);
|
||
};
|
||
|
||
// 快速学员搜索(走 manageApi,POST)
|
||
export const fetchQuickStudents = (params) =>
|
||
ajax2.get1(USER_LIST_PAGE, params);
|
||
|
||
// 组织列表(走 manageApi,POST)
|
||
export const fetchOrgList = (params) =>
|
||
ajax2.get1(ORG_LIST, params);
|
||
|
||
// 子组织列表(走 manageApi,POST)
|
||
export const fetchOrgChildren = (params) =>
|
||
ajax2.get1(ORG_CHILD_LIST, params);
|
||
|
||
// 受众中的用户列表(POST,application/json)
|
||
export const fetchAudienceList = (data) =>
|
||
ajax2.postJson("", AUDIENCE_LIST, data);
|
||
|