refactor(UI测试): 报告权限设置

--bug=1012337 --user=刘瑞斌 【UI测试】权限控制问题汇总 https://www.tapd.cn/55049933/s/1137659
This commit is contained in:
CaptainB 2022-04-18 15:11:53 +08:00 committed by 刘瑞斌
parent baff5b55dd
commit 4add00720e
1 changed files with 4 additions and 1 deletions

View File

@ -124,7 +124,10 @@
<div>
<ms-table-operator-button :tip="$t('api_report.detail')" icon="el-icon-s-data"
@exec="handleView(scope.row)" type="primary"/>
<ms-table-operator-button :tip="$t('api_report.delete')"
<ms-table-operator-button v-if="isUI" :tip="$t('api_report.delete')"
v-permission="['PROJECT_UI_REPORT:READ+DELETE']"
icon="el-icon-delete" @exec="handleDelete(scope.row)" type="danger"/>
<ms-table-operator-button v-else :tip="$t('api_report.delete')"
v-permission="['PROJECT_API_REPORT:READ+DELETE']"
icon="el-icon-delete" @exec="handleDelete(scope.row)" type="danger"/>
</div>