From 270af8ace5dbd1ef07c492f2cdf6a4012f09f5cb Mon Sep 17 00:00:00 2001 From: teukkk Date: Tue, 10 Dec 2024 14:36:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=A7=84=E5=88=92-=E5=85=B3=E8=81=94?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E5=BC=B9=E7=AA=97=E9=AB=98=E7=BA=A7=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=A2=9E=E5=8A=A0=E6=89=80=E5=B1=9E=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1017296 --user=吕梦园 https://www.tapd.cn/55049933/prong/tasks/view/1155049933001017296 --- .../src/api/modules/test-plan/testPlan.ts | 7 ++++++ .../src/api/requrls/test-plan/testPlan.ts | 2 ++ .../ms-associate-case/apiCaseTable.vue | 12 +++++++++- .../business/ms-associate-case/apiTable.vue | 11 +++++++++ .../business/ms-associate-case/caseTable.vue | 10 ++++++++ .../business/ms-associate-case/index.vue | 24 +++++++++++++++++++ .../ms-associate-case/scenarioCaseTable.vue | 10 ++++++++ .../pure/ms-advance-filter/filterDrawer.vue | 2 +- .../pure/ms-advance-filter/index.ts | 2 +- frontend/src/enums/advancedFilterEnum.ts | 2 +- frontend/src/models/testPlan/testPlan.ts | 14 +++++++++++ .../components/management/case/caseTable.vue | 2 +- .../components/management/mock/mockTable.vue | 2 +- .../common/importApiDrawer/table.vue | 2 +- 14 files changed, 95 insertions(+), 7 deletions(-) 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 @@