style(接口测试): 导出报告行距样式优化

This commit is contained in:
fit2-zhao 2023-02-16 15:22:06 +08:00 committed by fit2-zhao
parent 4917bbb89d
commit 22c46336ea
4 changed files with 60 additions and 50 deletions

View File

@ -110,8 +110,10 @@ public class MsScenario extends MsTestElement {
}
if (config != null && StringUtils.equals(this.getId(), config.getScenarioId())) {
config.setTransferVariables(this.variables);
if (CollectionUtils.isNotEmpty(this.headers)) {
ElementUtil.setHeader(scenarioTree, this.headers, this.getName());
}
}
if (config != null && !config.getExcludeScenarioIds().contains(this.getId())) {
scenarioTree = MsCriticalSectionController.createHashTree(tree, this.getName(), this.isEnable());
}

View File

@ -703,6 +703,9 @@ export default {
}
}
}
if(this.content.scenarios && this.content.scenarios[0].requestResults){
this.content.scenarios[0].requestResults.push({responseResult: {}});
}
this.reportExportVisible = true;
let reset = this.exportReportReset;
let name = this.report.name;

View File

@ -15,6 +15,7 @@
v-for="(request, index) in scenario.requestResults"
:key="index"
:request="request">
<div v-if="index != scenario.requestResults.length -1" style="min-height: 165px;">
<div class="request-top">
<div>
{{ getName(request.name) }}
@ -66,6 +67,7 @@
</api-report-request-header-item>
</div>
</div>
</div>
</el-card>
</div>
</ms-report-export-template>
@ -162,6 +164,7 @@ export default {
:deep(.report-left) {
float: none;
}
:deep(.metric-box-total) {
min-width: 100px;
}

View File

@ -278,7 +278,9 @@ export default {
onClose(e) {
},
listenScreenChange() {
if(this.size != 600) {
this.size = document.body.clientWidth;
}
},
showTaskCenter() {
this.getTaskRunning();