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