organization.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import {
  2. request
  3. } from '@/request/request.js';
  4. /*
  5. * 获取组织项目部门列表
  6. *
  7. *
  8. */
  9. export function getPartList(organizationId, projectId) {
  10. return request({
  11. url: `/manager/role/${organizationId}/${projectId}`,
  12. method: 'get'
  13. })
  14. }
  15. /*
  16. * 获取组织项目部门用户列表
  17. *
  18. *
  19. */
  20. export function getUserListByPart(data) {
  21. return request({
  22. url: `/manager/user/list/${data.organizationId}/${data.partId}`,
  23. method: 'post'
  24. })
  25. }
  26. /*
  27. * 切换组织
  28. * @param null
  29. */
  30. export function selectOrangaized(data) {
  31. return request({
  32. url: `/manager/userContext/organization`,
  33. method: 'post',
  34. data: data
  35. })
  36. }
  37. /*
  38. * 获取组织详情
  39. *
  40. *
  41. */
  42. export function getOrganizationDetailById(id) {
  43. return request({
  44. url: `/manager/base/organization/${id}`,
  45. method: 'get'
  46. })
  47. }
  48. /*
  49. * 获取客户/经纪人/组织绑定信息
  50. *
  51. *
  52. */
  53. export function bindProjectDetail(data) {
  54. return request({
  55. url: `/manager/bindProject/list`,
  56. method: 'post',
  57. data: data
  58. })
  59. }
  60. /*
  61. * 获取组织印章列表
  62. *
  63. *
  64. */
  65. export function getSealList(organizationId) {
  66. return request({
  67. url: `/file/seal/${organizationId}`,
  68. method: 'get'
  69. })
  70. }
  71. /*
  72. * 申请使用公章
  73. * @param {Object} data = {}
  74. *
  75. */
  76. export function requestSeal(data) {
  77. return request({
  78. url: `/file/sealRequest`,
  79. method: 'post',
  80. data: data
  81. })
  82. }