fix: UI编辑页生成报告失败报告为空

This commit is contained in:
chenjianxing 2022-04-21 12:57:55 +08:00 committed by zhangdahai112
parent adb935cc2a
commit 9ad0401fe3
2 changed files with 8 additions and 3 deletions

View File

@ -23,6 +23,7 @@
<el-tab-pane :label="$t('api_report.total')" name="total">
<ms-scenario-results
:treeData="fullTreeNodes"
:report="report"
:default-expand="true"
:console="content.console"
v-on:requestResult="requestResult"
@ -36,6 +37,7 @@
</template>
<ms-scenario-results
:console="content.console"
:report="report"
:treeData="fullTreeNodes"
v-on:requestResult="requestResult"
ref="failsTree"
@ -52,8 +54,11 @@
<template slot="label">
<span class="fail" style="color: #9C9B9A">{{ $t('api_test.home_page.detail_card.unexecute') }}</span>
</template>
<ms-scenario-results v-on:requestResult="requestResult" :console="content.console"
:treeData="fullTreeNodes" ref="unExecuteTree"/>
<ms-scenario-results v-on:requestResult="requestResult"
:report="report"
:console="content.console"
:treeData="fullTreeNodes"
ref="unExecuteTree"/>
</el-tab-pane>
<el-tab-pane name="console">
<template slot="label">

View File

@ -71,7 +71,7 @@ export default {
}
}else {
if (this.isUi) {
return data.value.success === false;
return data.value.success === false && data.value.startTime > 0;
} else if (!data.errorCode || data.errorCode === "") {
return data.value.error > 0;
}