From c800f4d836e968b739fbee4aacb83d5ee6873373 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 1 Jun 2021 16:41:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E6=88=B7=E7=BB=84=E5=92=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90):=20=E7=94=A8=E6=88=B7=E7=BB=84=E5=BE=85?= =?UTF-8?q?=E9=80=89=E5=88=97=E8=A1=A8=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/organization/OrganizationWorkspace.vue | 5 +++-- .../business/components/settings/project/EditMember.vue | 4 ++-- .../src/business/components/settings/project/Member.vue | 4 ++-- .../components/settings/system/SystemWorkspace.vue | 8 ++++---- .../business/components/settings/workspace/MsProject.vue | 5 +++-- .../components/settings/workspace/WorkspaceMember.vue | 4 ++-- 6 files changed, 16 insertions(+), 14 deletions(-) diff --git a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue index df0ce8e3aa..d697538ec6 100644 --- a/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue +++ b/frontend/src/business/components/settings/organization/OrganizationWorkspace.vue @@ -200,6 +200,7 @@ import MsTableOperator from "../../common/components/MsTableOperator"; import MsTableOperatorButton from "../../common/components/MsTableOperatorButton"; import MsDialogFooter from "../../common/components/MsDialogFooter"; import { + getCurrentOrganizationId, getCurrentUser, getCurrentWorkspaceId, listenGoBack, @@ -348,7 +349,7 @@ export default { this.result = this.$get('/user/list/', response => { this.userList = response.data; }); - this.result = this.$post('/user/group/list', {type: GROUP_WORKSPACE, resourceId: this.wsId}, response => { + this.result = this.$post('/user/group/list', {type: GROUP_WORKSPACE, resourceId: getCurrentOrganizationId()}, response => { this.$set(this.memberForm, "groups", response.data); }); listenGoBack(this.close); @@ -433,7 +434,7 @@ export default { this.dialogWsMemberUpdateVisible = true; this.memberForm = Object.assign({}, row); let groupIds = this.memberForm.groups.map(r => r.id); - this.result = this.$post('/user/group/list', {type: GROUP_WORKSPACE, resourceId: this.wsId}, response => { + this.result = this.$post('/user/group/list', {type: GROUP_WORKSPACE, resourceId: getCurrentOrganizationId()}, response => { this.$set(this.memberForm, "allgroups", response.data); }); // 编辑时填充角色信息 diff --git a/frontend/src/business/components/settings/project/EditMember.vue b/frontend/src/business/components/settings/project/EditMember.vue index 5afad4f747..fa486e75e5 100644 --- a/frontend/src/business/components/settings/project/EditMember.vue +++ b/frontend/src/business/components/settings/project/EditMember.vue @@ -43,7 +43,7 @@