fix(接口定义): 修复只读用户可以执行的缺陷

--bug=1016356 --user=王孝刚 [接口测试] github#17099只读用户使用CTRL+R快捷键可以执行用例
https://www.tapd.cn/55049933/s/1235625
This commit is contained in:
wxg0103 2022-08-30 10:45:08 +08:00 committed by 刘瑞斌
parent 536b729ea3
commit 8d4af8f2c6
5 changed files with 10 additions and 5 deletions

View File

@ -32,7 +32,8 @@
</slot>
</span>
<div v-if="!ifFromVariableAdvance" class="header-right" @click.stop>
<div v-if="!ifFromVariableAdvance" class="header-right" @click.stop
v-permission="['PROJECT_API_SCENARIO:READ+EDIT', 'PROJECT_API_SCENARIO:READ+CREATE', 'PROJECT_API_SCENARIO:READ+COPY']">
<slot name="message" v-show="!isMax"></slot>
<slot name="debugStepCode"></slot>

View File

@ -7,7 +7,8 @@
<el-card class="card-content">
<!-- 操作按钮 -->
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
@command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading">
@command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">
{{ $t('commons.test') }}
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="load_case">{{ $t('api_test.definition.request.load_case') }}

View File

@ -31,7 +31,8 @@
<!-- 操作按钮 -->
<el-form-item>
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
@command="handleCommand" size="small" v-if="!runLoading">
@command="handleCommand" size="small" v-if="!runLoading"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">
{{ $t('commons.test') }}
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="load_case">{{ $t('api_test.definition.request.load_case') }}

View File

@ -7,7 +7,8 @@
<el-card class="card-content">
<!-- 操作按钮 -->
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
@command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading">
@command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">
{{ $t('commons.test') }}
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="load_case">{{ $t('api_test.definition.request.load_case') }}

View File

@ -10,7 +10,8 @@
<!-- 操作按钮 -->
<el-dropdown split-button type="primary" class="ms-api-buttion" @click="handleCommand('add')"
@command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading">
@command="handleCommand" size="small" style="float: right;margin-right: 20px" v-if="!runLoading"
v-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']">
{{ $t('commons.test') }}
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="load_case">{{ $t('api_test.definition.request.load_case') }}