fix(接口测试): 接口版本表格放出删除操作

This commit is contained in:
RubyLiu 2023-06-27 14:45:02 +08:00 committed by 刘瑞斌
parent 358bbc0d56
commit c32a767715
2 changed files with 10 additions and 8 deletions

View File

@ -84,7 +84,7 @@
<el-card>
<!-- header 调试部分 -->
<div class="ms-debug-div" @click="showAll" ref="debugHeader">
<div class="debug-header" style="margin: 5px">
<div class="debug-header">
<div class="ms-col-one mt-2" v-show="scenarioDefinition.length > 1">
<el-tooltip
:content="$t('test_track.case.batch_operate')"
@ -160,7 +160,7 @@
</el-dropdown-menu>
</el-dropdown>
</el-tooltip>
<el-button class="mt-2" size="mini" type="primary" v-else @click="stop">{{
<el-button class="mt-2 ml-10" size="mini" type="primary" v-else @click="stop">{{
$t('report.stop_btn')
}}</el-button>
@ -2639,19 +2639,20 @@ export default {
}
.ms-debug-div {
padding: 5px;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
border: 1px #dcdfe6 solid;
border-radius: 4px;
margin-right: 0px;
.debug-header {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
flex: 1;
.ms-col-one {
display: flex;
align-items: center;

View File

@ -51,6 +51,11 @@
{{ $t('commons.create') }}&nbsp;
</el-link>
<el-link @click="del(scope.row)" v-if="scope.row.isCheckout" :disabled="scope.row.isCurrent || isRead"
v-permission="['PROJECT_VERSION:READ+DELETE']">
{{ $t('commons.delete') }}&nbsp;
</el-link>
<el-popover
placement="bottom"
width="100"
@ -62,11 +67,7 @@
:disabled="isRead || scope.row.id === dataLatestId">
{{ $t('project.version.set_new') }}&nbsp;
</el-link>
<br/>
<el-link @click="del(scope.row)" v-if="scope.row.isCheckout" :disabled="scope.row.isCurrent || isRead"
v-permission="['PROJECT_VERSION:READ+DELETE']">
{{ $t('commons.delete') }}&nbsp;
</el-link>
</div>
<span slot="reference">...</span>
</el-popover>