From 8d6ba0bfceefa8dfd7a28ce552d9704c664d72c0 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Mon, 27 May 2024 16:48:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=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=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/modules/test-plan/report.ts | 5 +- frontend/src/router/constants.ts | 5 + .../report/detail/component/bugTable.vue | 3 +- .../detail/component/featureCaseTable.vue | 3 +- .../report/detail/component/planDetail.vue | 96 ++++--------------- .../views/test-plan/report/detail/index.vue | 23 ++++- .../report/detail/sharePlanReportIndex.vue | 30 ++++-- 7 files changed, 76 insertions(+), 89 deletions(-) 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 @@