role-auth-info.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. 人员授权管理
  3. @author laiyh
  4. @Date 2020-10-09
  5. */
  6. import axios from "@/utils/req";
  7. import Qs from "qs";
  8. const base = `/authsvr/v2/roleauthinfo`;
  9. //人员视图 --人员列表
  10. export const staffUserPage = `${base}/staffUserPage/_search`;
  11. // 人员视图--角色列表
  12. export function getStaffRoleList(data) {
  13. return axios.get(`${base}/staffRoleList`, data);
  14. }
  15. // 保存人员角色
  16. export function saveRoleStaff(data) {
  17. return axios.post(`${base}/staff`, data);
  18. }
  19. // 角色视图 -- 全部应用列表
  20. export const roleViewApplication = `/authsvr/v2/applicationinfo/appQutoList/all`;
  21. // 角色视图 -- 根据appId查询角色列表
  22. export const getRoleListByAppid = `${base}/roleRoleList/_search`;
  23. // 角色视图 -- 人员列表
  24. export function persionListByOrgRole(params){
  25. return axios.post(`${base}/roleStaffList/_search`,Qs.stringify(params),{headers: { "Content-Type": "application/x-www-form-urlencoded" }})
  26. }
  27. // 角色视图 -- 勾选人员
  28. export function getChecked(params){
  29. return axios.get(`${base}/checked`,params);
  30. }
  31. // 角色视图 -保存
  32. export function savePersion(data){
  33. return axios.post(`${base}/role`,data);
  34. }
  35. // 业务域
  36. export function getBusiness(value){
  37. return axios.get(`/duceap/v2/resource/codelist/code/DM_ROLE_LEVEL`)
  38. }