style(接口测试): 导出报告行距样式优化
This commit is contained in:
parent
44f4587bae
commit
085f826ce6
|
@ -110,8 +110,10 @@ public class MsScenario extends MsTestElement {
|
||||||
}
|
}
|
||||||
if (config != null && StringUtils.equals(this.getId(), config.getScenarioId())) {
|
if (config != null && StringUtils.equals(this.getId(), config.getScenarioId())) {
|
||||||
config.setTransferVariables(this.variables);
|
config.setTransferVariables(this.variables);
|
||||||
|
if (CollectionUtils.isNotEmpty(this.headers)) {
|
||||||
ElementUtil.setHeader(scenarioTree, this.headers, this.getName());
|
ElementUtil.setHeader(scenarioTree, this.headers, this.getName());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (config != null && !config.getExcludeScenarioIds().contains(this.getId())) {
|
if (config != null && !config.getExcludeScenarioIds().contains(this.getId())) {
|
||||||
scenarioTree = MsCriticalSectionController.createHashTree(tree, this.getName(), this.isEnable());
|
scenarioTree = MsCriticalSectionController.createHashTree(tree, this.getName(), this.isEnable());
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
this.reportExportVisible = true;
|
||||||
let reset = this.exportReportReset;
|
let reset = this.exportReportReset;
|
||||||
let name = this.report.name;
|
let name = this.report.name;
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
v-for="(request, index) in scenario.requestResults"
|
v-for="(request, index) in scenario.requestResults"
|
||||||
:key="index"
|
:key="index"
|
||||||
:request="request">
|
:request="request">
|
||||||
|
<div v-if="index != scenario.requestResults.length -1" style="min-height: 165px;">
|
||||||
<div class="request-top">
|
<div class="request-top">
|
||||||
<div>
|
<div>
|
||||||
{{ getName(request.name) }}
|
{{ getName(request.name) }}
|
||||||
|
@ -66,6 +67,7 @@
|
||||||
</api-report-request-header-item>
|
</api-report-request-header-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</ms-report-export-template>
|
</ms-report-export-template>
|
||||||
|
@ -162,6 +164,7 @@ export default {
|
||||||
:deep(.report-left) {
|
:deep(.report-left) {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.metric-box-total) {
|
:deep(.metric-box-total) {
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -278,7 +278,9 @@ export default {
|
||||||
onClose(e) {
|
onClose(e) {
|
||||||
},
|
},
|
||||||
listenScreenChange() {
|
listenScreenChange() {
|
||||||
|
if(this.size != 600) {
|
||||||
this.size = document.body.clientWidth;
|
this.size = document.body.clientWidth;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showTaskCenter() {
|
showTaskCenter() {
|
||||||
this.getTaskRunning();
|
this.getTaskRunning();
|
||||||
|
|
Loading…
Reference in New Issue