fix(系统设置): 项目成员新增项目的权限未同步新增所属的工作空间
--bug=1018403 --user=李玉号 【系统设置】用户-编辑用户-新增一个项目的权限-未同步新增所属的工作空间 https://www.tapd.cn/55049933/s/1347786
This commit is contained in:
parent
3f64a199b4
commit
f02ab27e56
|
@ -433,6 +433,10 @@ export default {
|
|||
this.currentGroupWSIds.add(project.workspaceId);
|
||||
if (this.form.groups[this.currentWSGroupIndex] && this.form.groups[this.currentWSGroupIndex].ids.indexOf(project.workspaceId) === -1) {
|
||||
this.form.groups[this.currentWSGroupIndex].ids.push(project.workspaceId);
|
||||
} else if (this.form.groups.filter(g => g.type === "ws_member+WORKSPACE").length > 0
|
||||
&& this.form.groups.filter(g => g.type === "ws_member+WORKSPACE")[0].ids
|
||||
&& this.form.groups.filter(g => g.type === "ws_member+WORKSPACE")[0].ids.indexOf(project.workspaceId) === -1) {
|
||||
this.form.groups.filter(g => g.type === "ws_member+WORKSPACE")[0].ids.push(project.workspaceId);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -442,7 +446,9 @@ export default {
|
|||
let _type = type.split("+")[1];
|
||||
if (_type === GROUP_TYPE.WORKSPACE) {
|
||||
this.currentGroupWSIds.forEach(item => {
|
||||
if (this.form.groups[index] && this.form.groups[index].ids) {
|
||||
this.form.groups[index].ids.push(item);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.form.groups[index].ids = [];
|
||||
|
|
Loading…
Reference in New Issue