From dd6b5f85258f08b731e0c468a3660a4626af1776 Mon Sep 17 00:00:00 2001 From: teukkk Date: Fri, 7 Jun 2024 17:52:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9B=9E=E6=94=B6=E7=AB=99=E5=92=8C=E5=9C=BA=E6=99=AF-?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/models/apiTest/management.ts | 10 +-- .../api-test/components/saveAsApiModal.vue | 2 +- .../management/components/moduleTree.vue | 6 +- .../components/recycle/api/apiTable.vue | 85 ++++++++++++++++--- .../components/recycle/case/caseTable.vue | 27 +++--- .../management/components/recycle/index.vue | 6 +- .../common/importApiDrawer/moduleTree.vue | 4 +- .../common/importApiDrawer/table.vue | 2 +- .../detail/featureCase/detail/index.vue | 2 - 9 files changed, 92 insertions(+), 52 deletions(-) diff --git a/frontend/src/models/apiTest/management.ts b/frontend/src/models/apiTest/management.ts index 3ef5e5f383..a9d068ab77 100644 --- a/frontend/src/models/apiTest/management.ts +++ b/frontend/src/models/apiTest/management.ts @@ -100,8 +100,7 @@ export interface ApiDefinitionGetModuleParams { filter?: Record; combine?: Record; moduleIds: string[]; - protocols?: string[]; // TODO 协议 必填 - protocol?: string; // TODO 协议 改完回收站删除这行 + protocols: string[]; projectId: string; versionId?: string; refId?: string; @@ -181,8 +180,7 @@ export interface mockParams { } // 批量操作参数 export interface ApiDefinitionBatchParams extends BatchApiParams { - protocols?: string[]; // TODO 协议 必填 - protocol?: string; // TODO 协议 改完回收站删除这行 + protocols: string[]; } // 批量更新定义参数 export interface ApiDefinitionBatchUpdateParams extends ApiDefinitionBatchParams { @@ -281,7 +279,6 @@ export interface DefinitionReferencePageParams extends TableQueryParams { export interface ApiDefinitionDeleteParams { id: string; projectId: string; - protocol: string; deleteAll?: boolean; } @@ -334,8 +331,7 @@ export interface ApiCaseDetail extends ExecuteRequestParams { } // 批量操作参数 export interface ApiCaseBatchParams extends BatchApiParams { - protocols?: string[]; // TODO 协议 必填 - protocol?: string; // TODO 协议 改完回收站删除这行 + protocols: string[]; apiDefinitionId?: string; versionId?: string; } diff --git a/frontend/src/views/api-test/components/saveAsApiModal.vue b/frontend/src/views/api-test/components/saveAsApiModal.vue index c2ab4f4328..fd3c154f51 100644 --- a/frontend/src/views/api-test/components/saveAsApiModal.vue +++ b/frontend/src/views/api-test/components/saveAsApiModal.vue @@ -105,7 +105,7 @@ try { apiModuleTree.value = await getModuleTreeOnlyModules({ keyword: '', - protocol, + protocols: [protocol], projectId: appStore.currentProjectId, moduleIds: [], }); diff --git a/frontend/src/views/api-test/management/components/moduleTree.vue b/frontend/src/views/api-test/management/components/moduleTree.vue index 4f96cded89..a3a801bea2 100644 --- a/frontend/src/views/api-test/management/components/moduleTree.vue +++ b/frontend/src/views/api-test/management/components/moduleTree.vue @@ -9,10 +9,7 @@ />