fix 80139

This commit is contained in:
赵霄
2023-12-29 17:00:05 +08:00
parent 1072b5a9c3
commit d09b92ef6d
3 changed files with 14 additions and 5 deletions
@@ -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)