permission-selfhelp-manage.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /**
  2. 权限自助管理接口
  3. @author linqian
  4. @Date:2021-07-12
  5. */
  6. import request from '@/utils/request';
  7. const baseUrl = `/authsvr/v2/selfauth`;
  8. // 权限自助申请
  9. export function savePermissionApply(data) {
  10. return request({
  11. url: `${baseUrl}/funApplySave`,
  12. method: 'POST',
  13. data
  14. });
  15. }
  16. // 更新申请
  17. export function updateApply(data) {
  18. return request({
  19. url: `${baseUrl}/funApplyUpdate`,
  20. method: 'POST',
  21. data
  22. });
  23. }
  24. // 权限自助列表ul
  25. export const tableUrl = `${baseUrl}/authApplySearch`;
  26. // 获取全量应用功能菜单树
  27. export function allAppFuncTree(exclude) {
  28. return request({
  29. url: `/authsvr/v2/appfuninfo/allMenuTree`,
  30. method: 'GET',
  31. params: {
  32. exclude// 去除角色授权的菜单
  33. }
  34. });
  35. }
  36. // 获取申请单详情
  37. export function applyDetail(params) {
  38. return request({
  39. url: `${baseUrl}/funApplyDetail`,
  40. method: 'GET',
  41. params
  42. });
  43. }
  44. // 删除申请单
  45. export function delApply(params) {
  46. return request({
  47. url: `${baseUrl}/authApplyDelete`,
  48. method: 'DELETE',
  49. params
  50. });
  51. }
  52. // 申请撤回
  53. export function recallApply(params) {
  54. return request({
  55. url: `${baseUrl}/authApplyCancel`,
  56. method: 'GET',
  57. params
  58. });
  59. }
  60. // 获取申请人已被授权得功能id
  61. export function userHasAuthFunIds(params) {
  62. return request({
  63. url: `${baseUrl}/userHasAuthFunIds`,
  64. method: 'GET',
  65. params
  66. });
  67. }
  68. // 获取流程图配置
  69. export function processConfig(applyOrdNo) {
  70. return request({
  71. url: `${baseUrl}/processPicView`,
  72. method: 'GET',
  73. params: {
  74. applyOrdNo
  75. }
  76. });
  77. }
  78. // 获取流程详情
  79. export function getFlowChartDetail(data) {
  80. return request({
  81. url: `${baseUrl}/processNodeView`,
  82. method: 'GET',
  83. params: data
  84. });
  85. }
  86. // 获取流程状态
  87. export function getFlowChartStatus(applyOrdNo) {
  88. return request({
  89. url: `${baseUrl}/processStatusView`,
  90. method: 'GET',
  91. params: {
  92. applyOrdNo
  93. }
  94. });
  95. }
  96. // 审批意见
  97. export function getComments(applyOrdNo) {
  98. return request({
  99. url: `${baseUrl}/approvalSuggestion`,
  100. method: 'GET',
  101. params: {
  102. applyOrdNo
  103. }
  104. });
  105. }
  106. // 查询流程定义
  107. export function getFlowDefine(applyType) {
  108. return request({
  109. url: `${baseUrl}/flowDefineInfo`,
  110. method: 'GET',
  111. params: {
  112. applyType
  113. }
  114. });
  115. }
  116. // 判断应用功能菜单是否重复申请
  117. export function checkAppFunRepeat(params) {
  118. return request({
  119. url: `${baseUrl}/funApplyRepeatCheck`,
  120. method: "GET",
  121. params
  122. })
  123. }
  124. // 判断是否存在红白名单内容
  125. export function rediListCheck(data) {
  126. return request({
  127. url: `${baseUrl}/redListCheck `,
  128. method: "POST",
  129. data
  130. })
  131. }
  132. // 20241101 add status start
  133. // 申请挂起
  134. export function suspendApply(params) {
  135. return request({
  136. url: `${baseUrl}/authApplySuspend`,
  137. method: 'GET',
  138. params
  139. });
  140. }
  141. // 申请激活
  142. export function activateApply(params) {
  143. return request({
  144. url: `${baseUrl}/authApplyActivate`,
  145. method: 'GET',
  146. params
  147. });
  148. }
  149. // 申请终止
  150. export function stopApply(params) {
  151. return request({
  152. url: `${baseUrl}/authApplyStop`,
  153. method: 'GET',
  154. params
  155. });
  156. }
  157. //20241101 add status end