fix(测试跟踪): 用例评审批量操作权限控制

--bug=1018748 --user=陈建星 【系统设置】测试跟踪只有查看权限,但进入用例评审详情后切换脑图修改内容可以保存 https://www.tapd.cn/55049933/s/1277539
This commit is contained in:
chenjianxing 2022-10-26 10:09:10 +08:00 committed by jianxing
parent fb370a08ca
commit 1cd011e6ee
1 changed files with 7 additions and 3 deletions

View File

@ -268,17 +268,21 @@ export default {
showMore: false, showMore: false,
buttons: [ buttons: [
{ {
name: this.$t('test_track.case.batch_edit_case'), handleClick: this.handleEditBatch name: this.$t('test_track.case.batch_edit_case'),
handleClick: this.handleEditBatch,
permissions: ['PROJECT_TRACK_REVIEW:READ+EDIT']
}, },
{ {
name: this.$t('test_track.case.batch_unlink'), handleClick: this.handleDeleteBatch name: this.$t('test_track.case.batch_unlink'),
handleClick: this.handleDeleteBatch,
permissions: ['PROJECT_TRACK_REVIEW:READ+RELEVANCE_OR_CANCEL']
} }
], ],
operators: [ operators: [
{ {
tip: this.$t('commons.edit'), icon: "el-icon-edit", tip: this.$t('commons.edit'), icon: "el-icon-edit",
exec: this.handleEdit, exec: this.handleEdit,
permissions: ['PROJECT_TRACK_CASE:READ+EDIT'] permissions: ['PROJECT_TRACK_REVIEW:READ+EDIT']
}, },
{ {
tip: this.$t('test_track.plan_view.cancel_relevance'), icon: "el-icon-unlock", type: "danger", tip: this.$t('test_track.plan_view.cancel_relevance'), icon: "el-icon-unlock", type: "danger",