fix(系统设置): 工作空间菜单中添加成员时用户组选项查询问题

--bug=1018405 --user=李玉号 【系统设置】新建用户组-所属类型是工作空间,但是编辑成员的用户组是看不到该用户组
https://www.tapd.cn/55049933/s/1267129
This commit is contained in:
shiziyuan9527 2022-10-19 10:53:47 +08:00 committed by lyh
parent 9476279da4
commit 02614713e4

View File

@ -330,6 +330,7 @@ export default {
cellClick(row) {
this.currentWorkspaceRow = row;
this.dialogWsMemberVisible = true;
this.groupScopeId = row.id;
let param = {name: '', workspaceId: row.id};
this._getWorkspaceMemberListSpecial(param);
listenGoBack(this.closeWsMemberDialog);
@ -396,11 +397,11 @@ export default {
editMember(row) {
this.dialogWsMemberUpdateVisible = true;
this.memberForm = Object.assign({}, row);
this.loading = getUserGroupList({type: GROUP_TYPE.WORKSPACE, resourceId: this.groupScopeId})
this.$set(this.memberForm, 'groupIds', this.memberForm.groups.map(r => r.id));
this.workspaceMemberUpdateLoading = getUserGroupList({type: GROUP_TYPE.WORKSPACE, resourceId: this.groupScopeId})
.then(res => {
this.$set(this.memberForm, "workspaceGroups", res.data);
})
this.$set(this.memberForm, 'groupIds', this.memberForm.groups.map(r => r.id));
listenGoBack(this.handleClose);
},
handleDelete(workspace) {