fix(项目设置): 用户组中的成员编辑权限问题

--bug=1015849 --user=李玉号 【系统设置】只有项目设置 - 用户组与权限 - 查询用户组与权限
的权限,但是可以编辑用户组中的成员 https://www.tapd.cn/55049933/s/1224436
This commit is contained in:
shiziyuan9527 2022-08-16 17:00:52 +08:00 committed by f2c-ci-robot[bot]
parent c9becb0c7d
commit e82663bdb9
2 changed files with 29 additions and 2 deletions

View File

@ -67,7 +67,12 @@
<ms-table-pagination :change="initData" :current-page.sync="currentPage" :page-size.sync="pageSize"
:total="total"/>
</el-card>
<group-member ref="groupMember" @refresh="initData"/>
<group-member
ref="groupMember"
:edit-permission="['PROJECT_GROUP:READ+EDIT']"
:delete-permission="['PROJECT_GROUP:READ+EDIT']"
:create-permission="['PROJECT_GROUP:READ+EDIT']"
@refresh="initData"/>
<edit-user-group ref="editUserGroup" @refresh="initData"/>
<edit-permission ref="editPermission"/>
<ms-delete-confirm :title="$t('group.delete')" @delete="_handleDel" ref="deleteConfirm"/>

View File

@ -5,7 +5,7 @@
class="group-member">
<template v-slot:title>
<ms-table-header :condition.sync="condition" @create="addMemberBtn" @search="search"
:create-tip="$t('member.create')" :title="$t('commons.member')"/>
:create-permission="createPermission" :create-tip="$t('member.create')" :title="$t('commons.member')"/>
</template>
<el-table :border="true" class="adjust-table" :data="memberData" style="width: 100%;margin-top:5px;">
<el-table-column prop="id" label="ID"/>
@ -41,6 +41,8 @@
<div>
<ms-table-operator :tip2="$t('commons.remove')"
:show-edit="showTypeLabel"
:delete-permission="deletePermission"
:edit-permission="editPermission"
@editClick="editMemberBtn(scope.row)"
@deleteClick="removeMember(scope.row)"/>
</div>
@ -142,6 +144,26 @@ export default {
}
};
},
props: {
editPermission: {
type: Array,
default() {
return [];
}
},
deletePermission: {
type: Array,
default() {
return [];
}
},
createPermission: {
type: Array,
default() {
return []
}
},
},
computed: {
typeLabel() {
let type = this.group.type;