refactor(性能测试): 修改查询overview的方式
This commit is contained in:
parent
25e03d010e
commit
1dcaa8d3b2
|
@ -193,11 +193,15 @@ export default {
|
||||||
|
|
||||||
this.tableData.forEach(report => {
|
this.tableData.forEach(report => {
|
||||||
if (report.status === 'Completed' && !report.maxUsers) {
|
if (report.status === 'Completed' && !report.maxUsers) {
|
||||||
this.result = this.$get('/performance/report/content/testoverview/' + report.id, response => {
|
this.result = this.$get('/performance/report/content/testoverview/' + report.id)
|
||||||
this.$set(report, 'maxUsers', response.data.maxUsers);
|
.then(response => {
|
||||||
this.$set(report, 'avgResponseTime', response.data.avgResponseTime);
|
let data = response.data.data;
|
||||||
this.$set(report, 'tps', response.data.avgTransactions);
|
this.$set(report, 'maxUsers', data.maxUsers);
|
||||||
});
|
this.$set(report, 'avgResponseTime', data.avgResponseTime);
|
||||||
|
this.$set(report, 'tps', data.avgTransactions);
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue