diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index e5c6c30ba4..303f711540 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -113,6 +113,16 @@ public class ApiDefinitionService { request = this.initRequest(request, true, true); List resList = extApiDefinitionMapper.list(request); calculateResult(resList, request.getProjectId()); + ApiDefinitionRequest finalRequest = request; + if (finalRequest.getFilters().size() > 1) { + if (null != finalRequest.getFilters().get("case_status")) { + resList = resList.stream() + .filter((ApiDefinitionResult b) -> finalRequest.getFilters().get("case_status").contains(b.getCaseStatus())) + .collect(Collectors.toList()); + } + + } + return resList; } diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index c6357ea9e9..f8141596e5 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -24,12 +24,13 @@ show-overflow-tooltip min-width="80px" sortable=true - :key="index"> + :key="index" + >