From 10a9345e561a7d124619da0aed93fc651cb7de36 Mon Sep 17 00:00:00 2001 From: teukkk Date: Thu, 9 May 2024 17:43:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85pathMap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/config/pathMap.ts | 7 +++++++ frontend/src/models/testPlan/testPlan.ts | 2 +- .../test-plan/testPlan/createAndEditPlanDrawer.vue | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/frontend/src/config/pathMap.ts b/frontend/src/config/pathMap.ts index f0c0b5aeeb..8fdb0900c9 100644 --- a/frontend/src/config/pathMap.ts +++ b/frontend/src/config/pathMap.ts @@ -958,6 +958,13 @@ export const pathMap: PathMapItem[] = [ permission: [], level: MENU_LEVEL[2], }, + { + key: 'TEST_PLAN_INDEX_DETAIL', // 测试计划-测试计划-测试计划详情 + locale: 'menu.testPlan.testPlanDetail', + route: RouteEnum.TEST_PLAN_INDEX_DETAIL, + permission: [], + level: MENU_LEVEL[2], + }, ], }, { diff --git a/frontend/src/models/testPlan/testPlan.ts b/frontend/src/models/testPlan/testPlan.ts index 2319e7bb26..157bf7f94b 100644 --- a/frontend/src/models/testPlan/testPlan.ts +++ b/frontend/src/models/testPlan/testPlan.ts @@ -60,7 +60,7 @@ export interface AddTestPlanParams { repeatCase: boolean; // 是否允许重复添加用例 passThreshold: number; type: string; - baseAssociateCaseRequest: AssociateCaseRequest; + baseAssociateCaseRequest?: AssociateCaseRequest; groupOption?: boolean; } diff --git a/frontend/src/views/test-plan/testPlan/createAndEditPlanDrawer.vue b/frontend/src/views/test-plan/testPlan/createAndEditPlanDrawer.vue index 7b03df935e..750c33f371 100644 --- a/frontend/src/views/test-plan/testPlan/createAndEditPlanDrawer.vue +++ b/frontend/src/views/test-plan/testPlan/createAndEditPlanDrawer.vue @@ -75,7 +75,7 @@ {{ t('caseManagement.caseReview.clearSelectedCases') }} @@ -86,9 +86,9 @@
{{ t('caseManagement.caseReview.selectedCases', { - count: form.baseAssociateCaseRequest.selectAll - ? form.baseAssociateCaseRequest.totalCount - : form.baseAssociateCaseRequest.selectIds.length, + count: form.baseAssociateCaseRequest?.selectAll + ? form.baseAssociateCaseRequest?.totalCount + : form.baseAssociateCaseRequest?.selectIds.length, }) }}
@@ -127,7 +127,7 @@