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 @@