fix(性能测试): 修复报告对比弹出框分页失效的问题

This commit is contained in:
Captain.B 2021-05-14 11:28:26 +08:00 committed by 刘瑞斌
parent 50094a6890
commit 46e8b2442c
1 changed files with 3 additions and 4 deletions

View File

@ -81,17 +81,16 @@ export default {
close() { close() {
this.loadReportVisible = false; this.loadReportVisible = false;
}, },
getCompareReports(report) { getCompareReports() {
let condition = { let condition = {
testId: report.testId, testId: this.report.testId,
filters: {status: ["Completed"]} filters: {status: ["Completed"]}
}; };
this.reportLoadingResult = this.$post('/performance/report/list/all/' + this.currentPage + "/" + this.pageSize, condition, res => { this.reportLoadingResult = this.$post('/performance/report/list/all/' + this.currentPage + "/" + this.pageSize, condition, res => {
let data = res.data; let data = res.data;
this.total = data.itemCount; this.total = data.itemCount;
this.tableData = data.listObject; this.tableData = data.listObject;
}) });
}, },
handleCompare() { handleCompare() {
let reportIds = [...this.selectIds]; let reportIds = [...this.selectIds];