mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-01 11:38:57 +08:00
fix(接口定义): 修复只读用户可以执行的缺陷
--bug=1016356 --user=王孝刚 [接口测试] github#17099只读用户使用CTRL+R快捷键可以执行用例 https://www.tapd.cn/55049933/s/1235625
This commit is contained in:
parent
536b729ea3
commit
8d4af8f2c6
@ -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>
|
||||
|
||||
|
@ -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') }}
|
||||
|
@ -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') }}
|
||||
|
@ -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') }}
|
||||
|
@ -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') }}
|
||||
|
Loading…
Reference in New Issue
Block a user