fix(接口测试): 修复历史报告显示问题

--bug=1009892 --user=赵勇 [接口测试] github#9773场景用例的测试报告无法显示 https://www.tapd.cn/55049933/s/1096784
This commit is contained in:
fit2-zhao 2022-01-24 09:58:47 +08:00 committed by fit2-zhao
parent 9b746c1916
commit 7a7e0b6175
1 changed files with 13 additions and 5 deletions

View File

@ -1,17 +1,25 @@
<template>
<div class="scenario-result">
<div v-if="(node.children && node.children.length >0) || node.unsolicited || this.stepFilter.get('AllSamplerProxy').indexOf(node.type) === -1">
<div v-if="(node.children && node.children.length >0) || node.unsolicited
|| (node.type && this.stepFilter.get('AllSamplerProxy').indexOf(node.type) === -1)">
<el-card class="ms-card">
<div class="el-step__icon is-text ms-api-col">
<div class="el-step__icon-inner"> {{ node.index }}</div>
<div class="el-step__icon-inner">
{{ node.index }}
</div>
</div>
{{ node.label }}
</el-card>
</div>
<div v-else>
<ms-request-result :request="node.value" :indexNumber="node.index" :error-code="node.errorCode"
v-on:requestResult="requestResult"
:scenarioName="node.label" :console="console"/>
<ms-request-result
:request="node.value"
:indexNumber="node.index"
:error-code="node.errorCode"
:scenarioName="node.label"
:console="console"
v-on:requestResult="requestResult"
/>
</div>
</div>
</template>