fix: UI编辑页生成报告失败报告为空
This commit is contained in:
parent
adb935cc2a
commit
9ad0401fe3
|
@ -23,6 +23,7 @@
|
||||||
<el-tab-pane :label="$t('api_report.total')" name="total">
|
<el-tab-pane :label="$t('api_report.total')" name="total">
|
||||||
<ms-scenario-results
|
<ms-scenario-results
|
||||||
:treeData="fullTreeNodes"
|
:treeData="fullTreeNodes"
|
||||||
|
:report="report"
|
||||||
:default-expand="true"
|
:default-expand="true"
|
||||||
:console="content.console"
|
:console="content.console"
|
||||||
v-on:requestResult="requestResult"
|
v-on:requestResult="requestResult"
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
</template>
|
</template>
|
||||||
<ms-scenario-results
|
<ms-scenario-results
|
||||||
:console="content.console"
|
:console="content.console"
|
||||||
|
:report="report"
|
||||||
:treeData="fullTreeNodes"
|
:treeData="fullTreeNodes"
|
||||||
v-on:requestResult="requestResult"
|
v-on:requestResult="requestResult"
|
||||||
ref="failsTree"
|
ref="failsTree"
|
||||||
|
@ -52,8 +54,11 @@
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
<span class="fail" style="color: #9C9B9A">{{ $t('api_test.home_page.detail_card.unexecute') }}</span>
|
<span class="fail" style="color: #9C9B9A">{{ $t('api_test.home_page.detail_card.unexecute') }}</span>
|
||||||
</template>
|
</template>
|
||||||
<ms-scenario-results v-on:requestResult="requestResult" :console="content.console"
|
<ms-scenario-results v-on:requestResult="requestResult"
|
||||||
:treeData="fullTreeNodes" ref="unExecuteTree"/>
|
:report="report"
|
||||||
|
:console="content.console"
|
||||||
|
:treeData="fullTreeNodes"
|
||||||
|
ref="unExecuteTree"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane name="console">
|
<el-tab-pane name="console">
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
|
|
|
@ -71,7 +71,7 @@ export default {
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if (this.isUi) {
|
if (this.isUi) {
|
||||||
return data.value.success === false;
|
return data.value.success === false && data.value.startTime > 0;
|
||||||
} else if (!data.errorCode || data.errorCode === "") {
|
} else if (!data.errorCode || data.errorCode === "") {
|
||||||
return data.value.error > 0;
|
return data.value.error > 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue