fix(性能测试): 修复批量删除测试报告慢的问题

Closes #835
This commit is contained in:
Captain.B 2020-12-08 17:57:24 +08:00
parent 59c04230f1
commit 7e6a5f0a2c
1 changed files with 3 additions and 8 deletions

View File

@ -241,14 +241,9 @@ export default {
confirmButtonText: this.$t('commons.confirm'), confirmButtonText: this.$t('commons.confirm'),
callback: (action) => { callback: (action) => {
if (action === 'confirm') { if (action === 'confirm') {
let ids = Array.from(this.selectRows).map(row => row.id); this.selectRows.forEach(row => {
this.result = this.$post('/performance/report/batch/delete', {ids: ids}, () => { this._handleDelete(row);
this.selectRows.clear(); })
this.$success(this.$t('commons.delete_success'));
this.search();
// 广 head
PerformanceEvent.$emit(LIST_CHANGE);
});
} }
} }
}); });