fix 80139
This commit is contained in:
@@ -931,12 +931,19 @@ export default {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
return
|
||||
}
|
||||
const tableData = JSON.parse(JSON.stringify(this.dataSource))
|
||||
this.selectedRowKeys.forEach(index => {
|
||||
tableData[index] = null
|
||||
this.$confirm({
|
||||
title: this.$t('confirmBatchDeletion'),
|
||||
content: this.$t('deleteAData'),
|
||||
onOk: () => {
|
||||
const tableData = JSON.parse(JSON.stringify(this.dataSource))
|
||||
this.selectedRowKeys.forEach(index => {
|
||||
tableData[index] = null
|
||||
})
|
||||
this.dataSource = tableData.filter(tt => !!tt)
|
||||
this.selectedRowKeys = []
|
||||
this.$message.success(this.$t('successfullyDelete'))
|
||||
}
|
||||
})
|
||||
this.dataSource = tableData.filter(tt => !!tt)
|
||||
this.selectedRowKeys = []
|
||||
},
|
||||
onSelectChange (selectedRowKeys) {
|
||||
console.log(selectedRowKeys)
|
||||
|
||||
Reference in New Issue
Block a user