From 569c2538e3b0183667614f49580c298944a8c24b Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 3 Mar 2020 13:28:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=B7=A5=E4=BD=9C=E7=A9=BA?= =?UTF-8?q?=E9=97=B4=E5=A2=9E=E5=8A=A0=E6=88=90=E5=91=98=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/UserController.java | 13 +- .../components/settings/Organization.vue | 4 +- .../settings/OrganizationWorkspace.vue | 1 - .../components/settings/SystemWorkspace.vue | 305 +++++++++++++++++- 4 files changed, 307 insertions(+), 16 deletions(-) diff --git a/backend/src/main/java/io/metersphere/controller/UserController.java b/backend/src/main/java/io/metersphere/controller/UserController.java index 8ba5bbcd2d..21ca915981 100644 --- a/backend/src/main/java/io/metersphere/controller/UserController.java +++ b/backend/src/main/java/io/metersphere/controller/UserController.java @@ -4,6 +4,7 @@ import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import io.metersphere.base.domain.Role; import io.metersphere.base.domain.User; +import io.metersphere.commons.constants.RoleConstants; import io.metersphere.commons.utils.PageUtils; import io.metersphere.commons.utils.Pager; import io.metersphere.controller.request.member.AddMemberRequest; @@ -16,6 +17,7 @@ import io.metersphere.dto.UserRoleDTO; import io.metersphere.service.UserService; import io.metersphere.user.SessionUser; import io.metersphere.user.SessionUtils; +import org.apache.shiro.authz.annotation.RequiresRoles; import org.springframework.beans.BeanUtils; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -88,7 +90,7 @@ public class UserController { } /** - * 获取成员用户 + * 获取工作空间成员用户 */ @PostMapping("/member/list/{goPage}/{pageSize}") //@RequiresRoles(RoleConstants.TEST_MANAGER) @@ -97,6 +99,15 @@ public class UserController { return PageUtils.setPageInfo(page, userService.getMemberList(request)); } + /** + * 获取工作空间成员用户 不分页 + */ + @PostMapping("/member/list/all") + @RequiresRoles(RoleConstants.ADMIN) + public List getMemberList(@RequestBody QueryMemberRequest request) { + return userService.getMemberList(request); + } + /** * 添加成员 */ diff --git a/frontend/src/performance/components/settings/Organization.vue b/frontend/src/performance/components/settings/Organization.vue index cdcd5c42fd..bafeac61e1 100644 --- a/frontend/src/performance/components/settings/Organization.vue +++ b/frontend/src/performance/components/settings/Organization.vue @@ -66,14 +66,14 @@ - + - +