fix(测试跟踪): 缺陷高级搜索后全量导出问题
--bug=1023873 --user=宋昌昌 【测试跟踪】github#22273,缺陷管理导出,高级搜索进行筛选后导出,导出的是全部用例而不是筛选后的用例 https://www.tapd.cn/55049933/s/1344521
This commit is contained in:
parent
eefb2e03e2
commit
0bc05044d6
|
@ -22,6 +22,11 @@ public class IssueExportRequest {
|
||||||
private List<OrderRequest> orders;
|
private List<OrderRequest> orders;
|
||||||
private Map<String, List<IssueExportHeader>> exportFields;
|
private Map<String, List<IssueExportHeader>> exportFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 高级搜索
|
||||||
|
*/
|
||||||
|
private Map<String, Object> combine;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public static class IssueExportHeader {
|
public static class IssueExportHeader {
|
||||||
|
|
|
@ -1604,6 +1604,8 @@ public class IssuesService {
|
||||||
request.setWorkspaceId(exportRequest.getWorkspaceId());
|
request.setWorkspaceId(exportRequest.getWorkspaceId());
|
||||||
request.setSelectAll(exportRequest.getIsSelectAll());
|
request.setSelectAll(exportRequest.getIsSelectAll());
|
||||||
request.setExportIds(exportRequest.getExportIds());
|
request.setExportIds(exportRequest.getExportIds());
|
||||||
|
// 高级搜索条件
|
||||||
|
request.setCombine(exportRequest.getCombine());
|
||||||
// 列表排序
|
// 列表排序
|
||||||
request.setOrders(exportRequest.getOrders());
|
request.setOrders(exportRequest.getOrders());
|
||||||
request.setOrders(ServiceUtils.getDefaultOrderByField(request.getOrders(), "create_time"));
|
request.setOrders(ServiceUtils.getDefaultOrderByField(request.getOrders(), "create_time"));
|
||||||
|
|
|
@ -545,7 +545,8 @@ export default {
|
||||||
"isSelectAll": this.page.condition.selectAll,
|
"isSelectAll": this.page.condition.selectAll,
|
||||||
"exportIds": this.$refs.table.selectIds,
|
"exportIds": this.$refs.table.selectIds,
|
||||||
"exportFields": data,
|
"exportFields": data,
|
||||||
"orders": getLastTableSortField(this.tableHeaderKey)
|
"orders": getLastTableSortField(this.tableHeaderKey),
|
||||||
|
"combine": this.page.condition.combine
|
||||||
}
|
}
|
||||||
this.$fileDownloadPost("/issues/export", param);
|
this.$fileDownloadPost("/issues/export", param);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue