parent
59c04230f1
commit
7e6a5f0a2c
|
@ -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);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue