diff --git a/src/api/management/author.js b/src/api/management/author.js index 134c41d98..aa1ce533f 100644 --- a/src/api/management/author.js +++ b/src/api/management/author.js @@ -86,3 +86,17 @@ export function getPermissionQuickly(mapId, count) { method: 'post' }); } +/** 收回用户权限到权限分发中 */ +export function putUserPermissionBackPackage(id) { + return request({ + url: `/api/userPermission/${id}/back`, + method: 'put' + }); +} +/** 收回用户权限(专用)到用户权限中 */ +export function putUserPermissionBackUser(id) { + return request({ + url: `/api/userPermission/${id}/back/up`, + method: 'put' + }); +} diff --git a/src/api/management/distribute.js b/src/api/management/distribute.js index dccf6ffee..a5a0c47bb 100644 --- a/src/api/management/distribute.js +++ b/src/api/management/distribute.js @@ -75,3 +75,10 @@ export function createProjectPackage(projectCode, num) { method: 'post' }); } +/** 收回从该权限分发获取的用户权限 */ +export function putDistributeBack(id) { + return request({ + url: `/api/distribute/${id}/back`, + method: 'put' + }); +} diff --git a/src/api/management/user.js b/src/api/management/user.js index 1155ce85a..712752aa7 100644 --- a/src/api/management/user.js +++ b/src/api/management/user.js @@ -43,6 +43,14 @@ export function saveUserSubscribe(data) { }); } +/** 查询管理员和超管*/ +export function getAdminAndSuperAdminList() { + return request({ + url: `/api/user/adminAndSuperAdmin`, + method: 'get' + }); +} + // 修改用户信息 export function updateUserInfo(data) { return request({ diff --git a/src/components/QueryListPage/QueryForm.vue b/src/components/QueryListPage/QueryForm.vue index a87a20a0b..6350c6fcf 100644 --- a/src/components/QueryListPage/QueryForm.vue +++ b/src/components/QueryListPage/QueryForm.vue @@ -17,7 +17,7 @@