fix(UI 自动化): UI报告-场景/步骤统计无未执行状态

--bug=1014216 --user=张大海 【UI测试】UI报告-场景/步骤统计无未执行状态 https://www.tapd.cn/55049933/s/1186977
This commit is contained in:
zhangdahai112 2022-06-20 17:11:36 +08:00 committed by zhangdahai112
parent f117209c2f
commit c0d7fc80c0
1 changed files with 12 additions and 4 deletions

View File

@ -111,14 +111,22 @@
<div class="value">{{ content.scenarioStepErrorReport ? content.scenarioStepErrorReport : 0 }}</div>
<div class="name">{{ $t('error_report_library.option.name') }}</div>
</div>
<span v-show="showUnExecuteReport" class="ms-point-unexecute" />
<div v-show="showUnExecuteReport" class="metric-box">
<span v-show="showUnExecuteReport && !isUi" class="ms-point-unexecute"/>
<div v-show="showUnExecuteReport && !isUi" class="metric-box">
<div class="value">{{
content.scenarioStepUnExecuteReport ? content.scenarioStepUnExecuteReport : 0
}}
</div>
<div class="name">{{ $t('api_test.home_page.detail_card.unexecute') }}</div>
</div>
<span v-show="showUnExecuteReport && isUi" class="ms-point-unexecute"/>
<div v-show="showUnExecuteReport && isUi" class="metric-box">
<div class="value">{{
content.unExecute ? content.unExecute : 0
}}
</div>
<div class="name">{{ $t('api_test.home_page.detail_card.unexecute') }}</div>
</div>
</el-row>
</el-row>
</div>
@ -293,8 +301,8 @@ export default {
},
showUnExecuteReport() {
return (this.content.scenarioStepUnExecuteReport && this.content.scenarioStepUnExecuteReport > 0)
|| (this.content.scenarioUnExecute && this.content.scenarioUnExecute > 0);
}
|| (this.content.scenarioUnExecute && this.content.scenarioUnExecute > 0) || (this.content.unExecute && this.content.unExecute > 0);
},
},
}
</script>