fix(测试计划): 修复测试计划报告通过率展示不正确

This commit is contained in:
xinxin.wu 2024-08-20 18:23:50 +08:00 committed by Craftsman
parent a847dac0e2
commit fb7c51c636
1 changed files with 1 additions and 5 deletions

View File

@ -426,10 +426,6 @@
const apiCaseTotal = computed(() => getSummaryDetail(detail.value.apiCaseCount).caseTotal); const apiCaseTotal = computed(() => getSummaryDetail(detail.value.apiCaseCount).caseTotal);
const scenarioCaseTotal = computed(() => getSummaryDetail(detail.value.apiScenarioCount).caseTotal); const scenarioCaseTotal = computed(() => getSummaryDetail(detail.value.apiScenarioCount).caseTotal);
const totalCase = computed(() => {
return functionalCaseTotal.value + apiCaseTotal.value + scenarioCaseTotal.value;
});
const reportAnalysisList = computed<ReportMetricsItemModel[]>(() => { const reportAnalysisList = computed<ReportMetricsItemModel[]>(() => {
if (props.isGroup) { if (props.isGroup) {
return [ return [
@ -447,7 +443,7 @@
}, },
{ {
name: t('report.passRate'), name: t('report.passRate'),
value: detail.value.executeRate, value: detail.value.passRate,
unit: '%', unit: '%',
icon: 'passRate', icon: 'passRate',
}, },