From 19f5cb2d2782e9b2e949d8b3b1f5272ba7307c2c Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 4 Sep 2024 17:48:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test-plan/report/detail/component/viewReport.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/test-plan/report/detail/component/viewReport.vue b/frontend/src/views/test-plan/report/detail/component/viewReport.vue index 6a047edcc6..8cb705b8dc 100644 --- a/frontend/src/views/test-plan/report/detail/component/viewReport.vue +++ b/frontend/src/views/test-plan/report/detail/component/viewReport.vue @@ -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(() => { if (props.isGroup) {