refactor: 场景报告没有未执行步骤则不展示未执行状态
This commit is contained in:
parent
60b4622555
commit
97e822a586
|
@ -81,8 +81,8 @@
|
||||||
<div class="value">{{ content.scenarioErrorReport ? content.scenarioErrorReport : 0 }}</div>
|
<div class="value">{{ content.scenarioErrorReport ? content.scenarioErrorReport : 0 }}</div>
|
||||||
<div class="name">{{ $t('error_report_library.option.name') }}</div>
|
<div class="name">{{ $t('error_report_library.option.name') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="ms-point-unexecute"/>
|
<span v-show="showUnExecuteReport" class="ms-point-unexecute"/>
|
||||||
<div class="metric-box">
|
<div v-show="showUnExecuteReport" class="metric-box">
|
||||||
<div class="value">{{ content.scenarioUnExecute ? content.scenarioUnExecute : 0 }}</div>
|
<div class="value">{{ content.scenarioUnExecute ? content.scenarioUnExecute : 0 }}</div>
|
||||||
<div class="name">{{ $t('api_test.home_page.detail_card.unexecute') }}</div>
|
<div class="name">{{ $t('api_test.home_page.detail_card.unexecute') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -111,8 +111,8 @@
|
||||||
<div class="value">{{ content.scenarioStepErrorReport ? content.scenarioStepErrorReport : 0 }}</div>
|
<div class="value">{{ content.scenarioStepErrorReport ? content.scenarioStepErrorReport : 0 }}</div>
|
||||||
<div class="name">{{ $t('error_report_library.option.name') }}</div>
|
<div class="name">{{ $t('error_report_library.option.name') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="ms-point-unexecute" />
|
<span v-show="showUnExecuteReport" class="ms-point-unexecute" />
|
||||||
<div class="metric-box">
|
<div v-show="showUnExecuteReport" class="metric-box">
|
||||||
<div class="value">{{
|
<div class="value">{{
|
||||||
content.scenarioStepUnExecuteReport ? content.scenarioStepUnExecuteReport : 0
|
content.scenarioStepUnExecuteReport ? content.scenarioStepUnExecuteReport : 0
|
||||||
}}
|
}}
|
||||||
|
@ -275,6 +275,10 @@ export default {
|
||||||
isUi() {
|
isUi() {
|
||||||
return this.report.reportType && this.report.reportType.startsWith("UI");
|
return this.report.reportType && this.report.reportType.startsWith("UI");
|
||||||
},
|
},
|
||||||
|
showUnExecuteReport() {
|
||||||
|
return this.content.scenarioStepUnExecuteReport && this.content.scenarioStepUnExecuteReport > 0
|
||||||
|
&& this.content.scenarioUnExecute && this.content.scenarioUnExecute > 0;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue