From 761bbfc82b6c2132ea58a3b8eba88618546eeb3a Mon Sep 17 00:00:00 2001 From: teukkk Date: Fri, 17 May 2024 18:23:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E5=85=B3=E8=81=94=E7=94=A8=E4=BE=8B=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/modules/test-plan/testPlan.ts | 7 ++++++- frontend/src/api/requrls/test-plan/testPlan.ts | 2 ++ .../test-plan/testPlan/components/associateDrawer.vue | 5 +++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/api/modules/test-plan/testPlan.ts b/frontend/src/api/modules/test-plan/testPlan.ts index ee65451ad7..8b6facc1f4 100644 --- a/frontend/src/api/modules/test-plan/testPlan.ts +++ b/frontend/src/api/modules/test-plan/testPlan.ts @@ -25,6 +25,7 @@ import { GetFeatureCaseModuleUrl, GetPlanDetailFeatureCaseListUrl, getStatisticalCountUrl, + GetTestPlanCaseListUrl, GetTestPlanDetailUrl, GetTestPlanListUrl, GetTestPlanModuleCountUrl, @@ -43,7 +44,7 @@ import { } from '@/api/requrls/test-plan/testPlan'; import { ReviewUserItem } from '@/models/caseManagement/caseReview'; -import type { CreateOrUpdateModule, UpdateModule } from '@/models/caseManagement/featureCase'; +import type { CaseManagementTable, CreateOrUpdateModule, UpdateModule } from '@/models/caseManagement/featureCase'; import type { CommonList, MoveModules, TableQueryParams } from '@/models/common'; import { ModuleTreeNode } from '@/models/common'; import type { @@ -113,6 +114,10 @@ export function getTestPlanList(data: TableQueryParams) { export function addTestPlan(data: AddTestPlanParams) { return MSR.post({ url: AddTestPlanUrl, data }); } +// 功能用例列表 +export function getTestPlanCaseList(data: TableQueryParams) { + return MSR.post>({ url: GetTestPlanCaseListUrl, data }); +} // 创建测试计划 export function copyTestPlan(data: AddTestPlanParams) { return MSR.post({ url: copyTestPlanUrl, data }); diff --git a/frontend/src/api/requrls/test-plan/testPlan.ts b/frontend/src/api/requrls/test-plan/testPlan.ts index dbc26fe7f9..4aaf8e86f0 100644 --- a/frontend/src/api/requrls/test-plan/testPlan.ts +++ b/frontend/src/api/requrls/test-plan/testPlan.ts @@ -14,6 +14,8 @@ export const GetTestPlanModuleCountUrl = '/test-plan/module/count'; export const GetTestPlanListUrl = '/test-plan/page'; // 创建测试计划 export const AddTestPlanUrl = '/test-plan/add'; +// 功能用例列表 +export const GetTestPlanCaseListUrl = '/test-plan/association/page'; // 获取测试计划详情 export const GetTestPlanDetailUrl = '/test-plan'; // 更新测试计划 diff --git a/frontend/src/views/test-plan/testPlan/components/associateDrawer.vue b/frontend/src/views/test-plan/testPlan/components/associateDrawer.vue index 5652cbf4bd..6d300aecbd 100644 --- a/frontend/src/views/test-plan/testPlan/components/associateDrawer.vue +++ b/frontend/src/views/test-plan/testPlan/components/associateDrawer.vue @@ -3,7 +3,7 @@ v-model:visible="innerVisible" v-model:currentSelectCase="currentSelectCase" :get-modules-func="getCaseModuleTree" - :get-table-func="getCaseList" + :get-table-func="getTestPlanCaseList" :confirm-loading="confirmLoading" :associated-ids="props.hasNotAssociatedIds || []" :project-id="currentProjectId" @@ -23,7 +23,8 @@ import MsCaseAssociate from '@/components/business/ms-case-associate/index.vue'; import { RequestModuleEnum } from '@/components/business/ms-case-associate/utils'; - import { getCaseList, getCaseModuleTree } from '@/api/modules/case-management/featureCase'; + import { getCaseModuleTree } from '@/api/modules/case-management/featureCase'; + import { getTestPlanCaseList } from '@/api/modules/test-plan/testPlan'; import { useI18n } from '@/hooks/useI18n'; import useAppStore from '@/store/modules/app';