diff --git a/frontend/src/api/modules/test-plan/report.ts b/frontend/src/api/modules/test-plan/report.ts index 239449d918..0858307e0b 100644 --- a/frontend/src/api/modules/test-plan/report.ts +++ b/frontend/src/api/modules/test-plan/report.ts @@ -56,7 +56,10 @@ export function updateReportDetail(data: UpdateReportDetailParams) { } // 测试计划-报告-详情 -export function getReportDetail(id: string) { +export function getReportDetail(id: string, shareId?: string) { + if (shareId) { + return MSR.get({ url: `${reportUrl.PlanReportShareDetailUrl}/${shareId}/${id}` }); + } return MSR.get({ url: `${reportUrl.PlanReportDetailUrl}/${id}` }); } diff --git a/frontend/src/router/constants.ts b/frontend/src/router/constants.ts index 49f2e82efb..b4914ee808 100644 --- a/frontend/src/router/constants.ts +++ b/frontend/src/router/constants.ts @@ -16,6 +16,11 @@ export const WHITE_LIST = [ path: '/shareReportCase', children: [], }, + { + name: 'shareReportTestPlan', + path: '/shareReportTestPlan', + children: [], + }, ], }, { diff --git a/frontend/src/views/test-plan/report/detail/component/bugTable.vue b/frontend/src/views/test-plan/report/detail/component/bugTable.vue index 4769a78414..f2e034bf83 100644 --- a/frontend/src/views/test-plan/report/detail/component/bugTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/bugTable.vue @@ -17,7 +17,6 @@ const props = defineProps<{ reportId: string; shareId?: string; - isDelete: boolean; }>(); const tableStore = useTableStore(); @@ -81,7 +80,7 @@ } watchEffect(() => { - if (props.reportId && !props.isDelete) { + if (props.reportId) { loadCaseList(); } }); diff --git a/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue b/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue index 2f00eda8ba..2c5097ad73 100644 --- a/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/featureCaseTable.vue @@ -32,7 +32,6 @@ const props = defineProps<{ reportId: string; shareId?: string; - isDelete: boolean; }>(); const tableStore = useTableStore(); @@ -116,7 +115,7 @@ } watchEffect(() => { - if (props.reportId && !props.isDelete) { + if (props.reportId) { loadCaseList(); } }); diff --git a/frontend/src/views/test-plan/report/detail/component/planDetail.vue b/frontend/src/views/test-plan/report/detail/component/planDetail.vue index 2dcc308848..b9b99a1282 100644 --- a/frontend/src/views/test-plan/report/detail/component/planDetail.vue +++ b/frontend/src/views/test-plan/report/detail/component/planDetail.vue @@ -153,19 +153,14 @@ no-content class="relative mb-[16px] border-b" /> - - + + diff --git a/frontend/src/views/test-plan/report/detail/sharePlanReportIndex.vue b/frontend/src/views/test-plan/report/detail/sharePlanReportIndex.vue index 1621ff646e..efb65de1d6 100644 --- a/frontend/src/views/test-plan/report/detail/sharePlanReportIndex.vue +++ b/frontend/src/views/test-plan/report/detail/sharePlanReportIndex.vue @@ -1,30 +1,46 @@