From 73de926f4e57c37f5a9e818dbaea0037988b5fb1 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 16 Mar 2023 15:05:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E5=AF=BC=E5=87=BA=E6=9C=AA=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023873 --user=宋昌昌 【测试跟踪】github#22273,缺陷管理导出,高级搜索进行筛选后导出,导出的是全部用例而不是筛选后的用例 https://www.tapd.cn/55049933/s/1351455 --- .../io/metersphere/request/issues/IssueExportRequest.java | 5 +++++ .../src/main/java/io/metersphere/service/IssuesService.java | 2 ++ test-track/frontend/src/business/issue/IssueList.vue | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/request/issues/IssueExportRequest.java b/test-track/backend/src/main/java/io/metersphere/request/issues/IssueExportRequest.java index c7ab5c4392..6b2a25a1e3 100644 --- a/test-track/backend/src/main/java/io/metersphere/request/issues/IssueExportRequest.java +++ b/test-track/backend/src/main/java/io/metersphere/request/issues/IssueExportRequest.java @@ -22,6 +22,11 @@ public class IssueExportRequest { private List orders; private Map> exportFields; + /** + * 列表搜索 + */ + private String name; + /** * 高级搜索 */ diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index f2287485ff..23d88b0737 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -1651,6 +1651,8 @@ public class IssuesService { request.setWorkspaceId(exportRequest.getWorkspaceId()); request.setSelectAll(exportRequest.getIsSelectAll()); request.setExportIds(exportRequest.getExportIds()); + // 列表搜索条件 + request.setName(exportRequest.getName()); // 高级搜索条件 request.setCombine(exportRequest.getCombine()); // 列表排序 diff --git a/test-track/frontend/src/business/issue/IssueList.vue b/test-track/frontend/src/business/issue/IssueList.vue index 4efe15e595..77321975af 100644 --- a/test-track/frontend/src/business/issue/IssueList.vue +++ b/test-track/frontend/src/business/issue/IssueList.vue @@ -546,7 +546,8 @@ export default { "exportIds": this.$refs.table.selectIds, "exportFields": data, "orders": getLastTableSortField(this.tableHeaderKey), - "combine": this.page.condition.combine + "combine": this.page.condition.combine, + "name": this.page.condition.name } this.$fileDownloadPost("/issues/export", param); },