diff --git a/frontend/src/api/modules/test-plan/testPlan.ts b/frontend/src/api/modules/test-plan/testPlan.ts index e38af78961..cc208a909c 100644 --- a/frontend/src/api/modules/test-plan/testPlan.ts +++ b/frontend/src/api/modules/test-plan/testPlan.ts @@ -66,6 +66,7 @@ import { GetTestPlanDetailUrl, GetTestPlanExecutorOptionsUrl, GetTestPlanListUrl, + GetTestPlanListWithoutPageUrl, GetTestPlanModuleCountUrl, GetTestPlanModuleUrl, GetTestPlanUsersUrl, @@ -136,6 +137,7 @@ import type { TestPlanBaseParams, TestPlanDetail, TestPlanItem, + TestPlanWithoutPageItem, UseCountType, } from '@/models/testPlan/testPlan'; @@ -179,6 +181,11 @@ export function getTestPlanList(data: TableQueryParams) { return MSR.post>({ url: GetTestPlanListUrl, data }); } +// 获取计划列表(无分页) +export function getTestPlanListWithoutPage(projectId: string) { + return MSR.get({ url: `${GetTestPlanListWithoutPageUrl}/${projectId}` }); +} + // 创建测试计划 export function addTestPlan(data: AddTestPlanParams) { return MSR.post({ url: AddTestPlanUrl, data }); diff --git a/frontend/src/api/requrls/test-plan/testPlan.ts b/frontend/src/api/requrls/test-plan/testPlan.ts index b71d0848a8..e5ef92b1af 100644 --- a/frontend/src/api/requrls/test-plan/testPlan.ts +++ b/frontend/src/api/requrls/test-plan/testPlan.ts @@ -12,6 +12,8 @@ export const DeleteTestPlanModuleUrl = '/test-plan/module/delete'; export const GetTestPlanModuleCountUrl = '/test-plan/module/count'; // 测试计划列表 export const GetTestPlanListUrl = '/test-plan/page'; +// 测试计划列表 (无分页) +export const GetTestPlanListWithoutPageUrl = '/test-plan/test-plan-list'; // 创建测试计划 export const AddTestPlanUrl = '/test-plan/add'; // 功能用例列表 diff --git a/frontend/src/components/business/ms-associate-case/apiCaseTable.vue b/frontend/src/components/business/ms-associate-case/apiCaseTable.vue index f972eab530..43be406074 100644 --- a/frontend/src/components/business/ms-associate-case/apiCaseTable.vue +++ b/frontend/src/components/business/ms-associate-case/apiCaseTable.vue @@ -55,6 +55,7 @@