fix(测试跟踪): 缺陷高级搜索后全量导出问题

--bug=1023873 --user=宋昌昌 【测试跟踪】github#22273,缺陷管理导出,高级搜索进行筛选后导出,导出的是全部用例而不是筛选后的用例 https://www.tapd.cn/55049933/s/1344521
This commit is contained in:
song-cc-rock 2023-03-01 15:28:40 +08:00 committed by jianxing
parent eefb2e03e2
commit 0bc05044d6
3 changed files with 9 additions and 1 deletions

View File

@ -22,6 +22,11 @@ public class IssueExportRequest {
private List<OrderRequest> orders;
private Map<String, List<IssueExportHeader>> exportFields;
/**
* 高级搜索
*/
private Map<String, Object> combine;
@Getter
@Setter
public static class IssueExportHeader {

View File

@ -1604,6 +1604,8 @@ public class IssuesService {
request.setWorkspaceId(exportRequest.getWorkspaceId());
request.setSelectAll(exportRequest.getIsSelectAll());
request.setExportIds(exportRequest.getExportIds());
// 高级搜索条件
request.setCombine(exportRequest.getCombine());
// 列表排序
request.setOrders(exportRequest.getOrders());
request.setOrders(ServiceUtils.getDefaultOrderByField(request.getOrders(), "create_time"));

View File

@ -545,7 +545,8 @@ export default {
"isSelectAll": this.page.condition.selectAll,
"exportIds": this.$refs.table.selectIds,
"exportFields": data,
"orders": getLastTableSortField(this.tableHeaderKey)
"orders": getLastTableSortField(this.tableHeaderKey),
"combine": this.page.condition.combine
}
this.$fileDownloadPost("/issues/export", param);
},