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 6fb493fcaf
commit c5da9df483
1 changed files with 13 additions and 5 deletions

View File

@ -1,17 +1,25 @@
<template> <template>
<div class="scenario-result"> <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"> <el-card class="ms-card">
<div class="el-step__icon is-text ms-api-col"> <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> </div>
{{ node.label }} {{ node.label }}
</el-card> </el-card>
</div> </div>
<div v-else> <div v-else>
<ms-request-result :request="node.value" :indexNumber="node.index" :error-code="node.errorCode" <ms-request-result
v-on:requestResult="requestResult" :request="node.value"
:scenarioName="node.label" :console="console"/> :indexNumber="node.index"
:error-code="node.errorCode"
:scenarioName="node.label"
:console="console"
v-on:requestResult="requestResult"
/>
</div> </div>
</div> </div>
</template> </template>