From a445c6e83eff0f093fdbef0e7ce14bc04dc84034 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Tue, 16 Jul 2024 11:14:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8A=A5=E5=91=8A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/detail/component/reportConfig.ts | 4 +-- .../system-card/apiAndScenarioTable.vue | 14 +++++---- .../detail/component/system-card/bugTable.vue | 24 +++++++++------ .../system-card/featureCaseTable.vue | 29 +++++++++++-------- .../system-card/reportDetailTable.vue | 9 ++++-- .../test-plan/report/detail/configReport.vue | 2 +- 6 files changed, 50 insertions(+), 32 deletions(-) diff --git a/frontend/src/views/test-plan/report/detail/component/reportConfig.ts b/frontend/src/views/test-plan/report/detail/component/reportConfig.ts index f506d35515..41abfde5ce 100644 --- a/frontend/src/views/test-plan/report/detail/component/reportConfig.ts +++ b/frontend/src/views/test-plan/report/detail/component/reportConfig.ts @@ -106,8 +106,8 @@ const subPlanList: PlanReportDetail = { endTime: 0, summary: '', caseTotal: 1, - passThreshold: 100.0, - passRate: 0.0, + passThreshold: 100, + passRate: 100, executeRate: 0, bugCount: 0, planCount: 0, diff --git a/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue b/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue index 6423704509..a819f3bc68 100644 --- a/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/system-card/apiAndScenarioTable.vue @@ -95,7 +95,7 @@ dataIndex: 'priority', slotName: 'priority', filterConfig: { - options: casePriorityOptions, + options: props.isPreview ? casePriorityOptions : [], filterSlotName: FilterSlotNameEnum.CASE_MANAGEMENT_CASE_LEVEL, }, width: 150, @@ -106,7 +106,7 @@ dataIndex: 'executeResult', slotName: 'lastExecResult', filterConfig: { - options: lastReportStatusListOptions.value, + options: props.isPreview ? lastReportStatusListOptions.value : [], filterSlotName: FilterSlotNameEnum.API_TEST_CASE_API_LAST_EXECUTE_STATUS, }, width: 150, @@ -153,7 +153,10 @@ }); async function loadCaseList() { - currentCaseTable.value.setLoadListParams({ reportId: props.reportId, shareId: props.shareId ?? undefined }); + currentCaseTable.value.setLoadListParams({ + reportId: props.reportId, + shareId: props.shareId ?? undefined, + }); currentCaseTable.value.loadList(); } @@ -183,9 +186,8 @@ } } - watchEffect(() => { - if (props.reportId && props.activeType && props.isPreview) { - currentCaseTable.value.resetFilterParams(); + onMounted(() => { + if (props.reportId && props.isPreview) { currentCaseTable.value.resetPagination(); loadCaseList(); } else { diff --git a/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue b/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue index cbd258bae7..a8707e8d80 100644 --- a/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/system-card/bugTable.vue @@ -3,6 +3,9 @@