cyl/dev
parent
ec74d07e68
commit
6d01c7c3cc
@ -0,0 +1,173 @@
|
||||
import request from "../utils/request";
|
||||
import qs from "qs";
|
||||
let setqs = function (data) {
|
||||
return qs.stringify(data);
|
||||
};
|
||||
// 成员管理:获取成员列表
|
||||
export function getMemberListApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/getAgencyCorpUsers",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 成员管理:删除成员
|
||||
export function deleteMemberApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/delAgencyCorpUser",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
|
||||
// 成员管理:添加成员
|
||||
export function addMemberApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/addAgencyUser",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
|
||||
// 成员管理:更新成员
|
||||
export function updateMemberApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/updateAgencyCorpUser",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 数据统计列表获取
|
||||
export function dataStatisticsListApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/statistics/agency/teamWithGroup",
|
||||
method: "post",
|
||||
// headers: { "Content-Type": "multipart/form-data" },
|
||||
data: setqs(data),
|
||||
// data,
|
||||
});
|
||||
}
|
||||
// 数据统计工单详情获取
|
||||
export function dataStatisticsTeamDetailApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/statistics/agency/teamDetail",
|
||||
method: "post",
|
||||
// headers: { "Content-Type": "multipart/form-data" },
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 成员相关
|
||||
*
|
||||
*
|
||||
*/
|
||||
// 获取成员分组信息
|
||||
export function getMemberGroupApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/team/list",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
// 添加成员分组
|
||||
export function addMemberGroupApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/team/add",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 更新成员分组
|
||||
export function updateMemberGroupApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/team/update",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 删除成员分组
|
||||
export function delMemberGroupApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/team/del/" + data,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
// 成员管理分组下移
|
||||
export function moveGroupNextApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/team/next/" + data,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
// 成员管理分组上移
|
||||
export function moveGroupPrevApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/team/prev/" + data,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 大屏显示开关
|
||||
export function memberShowScreenApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/agencyCorpUser/showAgencyScreen",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
|
||||
// 参与数据统计开关
|
||||
export function memberJoinDataApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/agencyCorpUser/inAgencyStatistics",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 获取成员总数
|
||||
export function getTotalNumApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/user/countAgencyTeam",
|
||||
method: "get",
|
||||
// data: setqs(data),
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 角色相关
|
||||
*
|
||||
*
|
||||
*/
|
||||
// 获取角色列表
|
||||
export function getRoleListApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/role/list",
|
||||
method: "get",
|
||||
// data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 添加角色
|
||||
export function addRoleApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/role/add",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
// 修改角色
|
||||
export function updateRoleApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/role/update",
|
||||
method: "post",
|
||||
data: setqs(data),
|
||||
});
|
||||
}
|
||||
|
||||
// 删除角色
|
||||
export function delRoleApi (data) {
|
||||
return request({
|
||||
url: "/yishoudan/agency/role/del/" + data,
|
||||
method: "get",
|
||||
// data: setqs(data),
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue