From 71cf45d8af55a2d12e98fdc3369fe015fdcb30a9 Mon Sep 17 00:00:00 2001 From: W23123 <1021720039@qq.com> Date: Tue, 18 Feb 2020 17:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=91=98=E7=AE=A1=E7=90=86=200.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/UserController.java | 6 +- .../components/settings/Member.vue | 64 ++++++++++++++----- 2 files changed, 52 insertions(+), 18 deletions(-) diff --git a/backend/src/main/java/io/metersphere/controller/UserController.java b/backend/src/main/java/io/metersphere/controller/UserController.java index 1d163c170b..d68f14d03f 100644 --- a/backend/src/main/java/io/metersphere/controller/UserController.java +++ b/backend/src/main/java/io/metersphere/controller/UserController.java @@ -71,7 +71,7 @@ public class UserController { * 获取成员用户 */ @PostMapping("/member/list/{goPage}/{pageSize}") - @RequiresRoles(RoleConstants.TEST_MANAGER) + //@RequiresRoles(RoleConstants.TEST_MANAGER) public Pager> getMemberList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryMemberRequest request) { Page page = PageHelper.startPage(goPage, pageSize, true); return PageUtils.setPageInfo(page, userService.getMemberList(request)); @@ -81,7 +81,7 @@ public class UserController { * 添加成员 */ @PostMapping("/member/add") - @RequiresRoles(RoleConstants.TEST_MANAGER) + //@RequiresRoles(RoleConstants.TEST_MANAGER) public void addMember(@RequestBody AddMemberRequest request) { userService.addMember(request); } @@ -90,7 +90,7 @@ public class UserController { * 删除成员 */ @GetMapping("/member/delete/{workspaceId}/{userId}") - @RequiresRoles(RoleConstants.TEST_MANAGER) + //@RequiresRoles(RoleConstants.TEST_MANAGER) public void deleteMember(@PathVariable String workspaceId, @PathVariable String userId) { userService.deleteMember(workspaceId, userId); } diff --git a/frontend/src/performance/components/settings/Member.vue b/frontend/src/performance/components/settings/Member.vue index 1c637749b6..677b16525d 100644 --- a/frontend/src/performance/components/settings/Member.vue +++ b/frontend/src/performance/components/settings/Member.vue @@ -42,16 +42,20 @@ - - - - - - + + + + + + - 创建 + 保存 @@ -59,7 +63,6 @@