fix(接口自动化): 项目位置显示

--user=郭雨琦 项目位置显示由后转前
This commit is contained in:
guoyuqi 2021-11-24 14:38:09 +08:00 committed by 刘瑞斌
parent fce15ac88d
commit cebeb788b4
2 changed files with 7 additions and 12 deletions

View File

@ -12,9 +12,6 @@
:is-max="isMax"
:show-btn="showBtn"
:title="displayTitle">
<template v-slot:message>
<span class="ms-tag ms-step-name-api">{{ getProjectName(request.projectId) }}</span>
</template>
<template v-slot:afterTitle v-if="request.refType==='API'|| request.refType==='CASE'">
<span v-if="isShowNum" @click = "clickResource(request)">{{" ID: "+request.num+""}}</span>
@ -29,6 +26,7 @@
<el-tag size="mini" class="ms-tag" v-if="request.referenced==='Deleted'" type="danger">{{ $t('api_test.automation.reference_deleted') }}</el-tag>
<el-tag size="mini" class="ms-tag" v-if="request.referenced==='Copy'">{{ $t('commons.copy') }}</el-tag>
<el-tag size="mini" class="ms-tag" v-if="request.referenced ==='REF'">{{ $t('api_test.scenario.reference') }}</el-tag>
<span class="ms-tag ms-step-name-api">{{ getProjectName(request.projectId) }}</span>
</template>
<template v-slot:debugStepCode>
<span v-if="request.testing" class="ms-test-running">
@ -777,14 +775,7 @@ export default {
}
.ms-step-name-api {
display: inline-block;
margin: 0 5px;
overflow-x: hidden;
padding-bottom: 0;
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
width: 60px;
padding-left: 10px;
}
.ms-tag {

View File

@ -28,7 +28,7 @@
<el-tag size="mini" class="ms-tag" v-if="scenario.referenced==='Deleted'" type="danger">{{ $t('api_test.automation.reference_deleted') }}</el-tag>
<el-tag size="mini" class="ms-tag" v-if="scenario.referenced==='Copy'">{{ $t('commons.copy') }}</el-tag>
<el-tag size="mini" class="ms-tag" v-if="scenario.referenced==='REF'">{{ $t('api_test.scenario.reference') }}</el-tag>
<span class="ms-tag">{{ getProjectName(scenario.projectId) }}</span>
<span class="ms-tag ms-step-name-api">{{ getProjectName(scenario.projectId) }}</span>
</template>
<template v-slot:debugStepCode>
<span v-if="node.data.testing" class="ms-test-running">
@ -277,6 +277,10 @@ export default {
transform: rotate(90deg);
}
.ms-step-name-api {
padding-left: 10px;
}
.ms-tag {
margin-left: 0px;
}