feat(测试计划): 调整测试计划报告自定义配置为空展示优化

This commit is contained in:
xinxin.wu 2024-09-04 17:48:24 +08:00 committed by 刘瑞斌
parent 53649fbc5e
commit 19f5cb2d27
1 changed files with 9 additions and 3 deletions

View File

@ -424,9 +424,15 @@
const apiScenarioDetail = getSummaryDetail(detail.value.apiScenarioCount || defaultCount);
return apiScenarioDetail.successRate;
});
const functionalCaseTotal = computed(() => detail.value.functionalTotal);
const apiCaseTotal = computed(() => detail.value.apiCaseTotal);
const scenarioCaseTotal = computed(() => detail.value.apiScenarioTotal);
const functionalCaseTotal = computed(() =>
props.isPreview ? detail.value.functionalTotal : getSummaryDetail(detail.value.functionalCount).caseTotal
);
const apiCaseTotal = computed(() =>
props.isPreview ? detail.value.apiCaseTotal : getSummaryDetail(detail.value.apiCaseCount).caseTotal
);
const scenarioCaseTotal = computed(() =>
props.isPreview ? detail.value.apiScenarioTotal : getSummaryDetail(detail.value.apiScenarioCount).caseTotal
);
const reportAnalysisList = computed<ReportMetricsItemModel[]>(() => {
if (props.isGroup) {