fix(测试跟踪): 测试计划报告修改名称权限问题

--bug=1018753 --user=陈建星 【系统设置】测试跟踪只有查看权限,但可以修改报告名称 https://www.tapd.cn/55049933/s/1274894
This commit is contained in:
chenjianxing 2022-10-24 18:10:14 +08:00 committed by 刘瑞斌
parent 9c06706696
commit 4d1d115c69
2 changed files with 6 additions and 3 deletions

View File

@ -11,15 +11,15 @@
:sortable="sortable"
:filter-method="filterMethod"
:filtered-value="filteredValue "
:show-overflow-tooltip="showOverflowTooltip"
>
:show-overflow-tooltip="showOverflowTooltip">
<template v-slot:default="scope">
<slot :row="scope.row" :$index="scope.$index" v-if="!editable">
<span @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span>
</slot>
<slot :row="scope.row" :$index="scope.$index" v-if="editable">
<span style="cursor: pointer;" @click="$emit('click', scope.row)">{{ scope.row[prop] }}</span>
<el-tooltip :content="editContent ? editContent : $t('commons.edit')"
<el-tooltip v-permission="permission ? [permission] : null" :content="editContent ? editContent : $t('commons.edit')"
@click.native.stop="$emit('editColumn', scope.row)">
<a style="cursor: pointer">
<i style="cursor:pointer" class="el-input__icon el-icon-edit pointer"></i>
@ -27,6 +27,7 @@
</el-tooltip>
</slot>
</template>
</el-table-column>
</template>
@ -48,6 +49,7 @@ export default {
fixed: String,
// mapperfilters
filters: Array,
permission: String,
showOverflowTooltip: {
type: Boolean,
default() {

View File

@ -27,6 +27,7 @@
<ms-table-column
prop="name"
permission="PROJECT_TRACK_REPORT:READ+DELETE"
:field="item"
:fields-width="fieldsWidth"
sortable