fix:项目列表跳转权限问题 (#4862)

* fix:项目列表跳转权限问题

* fix:项目列表跳转权限问题

Co-authored-by: wenyann <wenyan.yang@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-07-20 18:09:46 +08:00 committed by GitHub
parent 8637f12ac5
commit 5672f52b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -186,6 +186,11 @@ public class UserController {
return PageUtils.setPageInfo(page, userService.getProjectMemberList(request));
}
@PostMapping("/project/member/list")
public List<User> getProjectMemberListAll(@RequestBody QueryMemberRequest request) {
return userService.getProjectMemberList(request);
}
/**
* 获取工作空间成员用户 不分页
*/

View File

@ -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);