diff --git a/src/frontend/bk-permission/package.json b/src/frontend/bk-permission/package.json index 84187c4c606..4c1e9b9707d 100644 --- a/src/frontend/bk-permission/package.json +++ b/src/frontend/bk-permission/package.json @@ -1,6 +1,6 @@ { "name": "bk-permission", - "version": "0.1.3", + "version": "0.1.4", "description": "", "main": "./dist/main.js", "scripts": { diff --git a/src/frontend/bk-permission/src/components/children/permission-manage/group-aside.vue b/src/frontend/bk-permission/src/components/children/permission-manage/group-aside.vue index 0f2f6bca8c1..0c7f42dbb2c 100644 --- a/src/frontend/bk-permission/src/components/children/permission-manage/group-aside.vue +++ b/src/frontend/bk-permission/src/components/children/permission-manage/group-aside.vue @@ -302,15 +302,20 @@ export default { this.handleChooseGroup(this.groupList[0]); break; case 'add_user_confirm': + case 'add_template_confirm': this.groupList[this.curGroupIndex].departmentCount += data.data.departments.length this.groupList[this.curGroupIndex].userCount += data.data.users.length + this.groupList[this.curGroupIndex].templateCount += data.data.templates.length this.syncGroupIAM(this.groupList[this.curGroupIndex].groupId) break; - case 'remove_user_confirm': { + case 'remove_user_confirm': + case 'remove_template_confirm': { const departments = data.data.members.filter(i => i.type === 'department') const users = data.data.members.filter(i => i.type === 'user') + const templates = data.data.members.filter(i => i.type === 'template') this.groupList[this.curGroupIndex].departmentCount -= departments.length this.groupList[this.curGroupIndex].userCount -= users.length + this.groupList[this.curGroupIndex].templateCount -= templates.length this.syncGroupIAM(this.groupList[this.curGroupIndex].groupId) break; } diff --git a/src/frontend/devops-manage/src/components/user-group/components/children/permission-manage/group-aside.vue b/src/frontend/devops-manage/src/components/user-group/components/children/permission-manage/group-aside.vue index 9ee9ed07b6a..f5bba016045 100644 --- a/src/frontend/devops-manage/src/components/user-group/components/children/permission-manage/group-aside.vue +++ b/src/frontend/devops-manage/src/components/user-group/components/children/permission-manage/group-aside.vue @@ -415,15 +415,20 @@ export default { this.handleChooseGroup(this.groupList[0]); break; case 'add_user_confirm': + case 'add_template_confirm': this.groupList[this.curGroupIndex].departmentCount += data.data.departments.length this.groupList[this.curGroupIndex].userCount += data.data.users.length + this.groupList[this.curGroupIndex].templateCount += data.data.templates.length this.syncGroupIAM(this.groupList[this.curGroupIndex].groupId) break; - case 'remove_user_confirm': { + case 'remove_user_confirm': + case 'remove_template_confirm': { const departments = data.data.members.filter(i => i.type === 'department') const users = data.data.members.filter(i => i.type === 'user') + const templates = data.data.members.filter(i => i.type === 'template') this.groupList[this.curGroupIndex].departmentCount -= departments.length this.groupList[this.curGroupIndex].userCount -= users.length + this.groupList[this.curGroupIndex].templateCount -= templates.length this.syncGroupIAM(this.groupList[this.curGroupIndex].groupId) break; }