From 5672f52b3b997b7b587a9768521686081741cde8 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Tue, 20 Jul 2021 18:09:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=20(#4862?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix:项目列表跳转权限问题 * fix:项目列表跳转权限问题 Co-authored-by: wenyann --- .../main/java/io/metersphere/controller/UserController.java | 5 +++++ .../src/business/components/settings/workspace/MsProject.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/controller/UserController.java b/backend/src/main/java/io/metersphere/controller/UserController.java index c9ac591ab4..a9feeae452 100644 --- a/backend/src/main/java/io/metersphere/controller/UserController.java +++ b/backend/src/main/java/io/metersphere/controller/UserController.java @@ -186,6 +186,11 @@ public class UserController { return PageUtils.setPageInfo(page, userService.getProjectMemberList(request)); } + @PostMapping("/project/member/list") + public List getProjectMemberListAll(@RequestBody QueryMemberRequest request) { + return userService.getProjectMemberList(request); + } + /** * 获取工作空间成员用户 不分页 */ diff --git a/frontend/src/business/components/settings/workspace/MsProject.vue b/frontend/src/business/components/settings/workspace/MsProject.vue index 728a4363d6..18e6e5cb1c 100644 --- a/frontend/src/business/components/settings/workspace/MsProject.vue +++ b/frontend/src/business/components/settings/workspace/MsProject.vue @@ -370,9 +370,9 @@ export default { }; this.wsId = row.id; let path = "/user/project/member/list"; - this.result = this.$post(this.buildPagePath(path), param, res => { + this.result = this.$post("/user/project/member/list", param, res => { let data = res.data; - this.memberLineData = data.listObject; + this.memberLineData = data; let arr = this.memberLineData.filter(item => item.id == getCurrentUserId()); if (arr.length > 0) { window.sessionStorage.setItem(PROJECT_ID, row.id);