[update] 修改bug80303

This commit is contained in:
lideqin
2024-01-08 12:03:21 +08:00
parent eb40c64efd
commit 1475fdfbc8
2 changed files with 28 additions and 8 deletions
@@ -460,11 +460,21 @@ export default {
},
// 批量删除
batchDel () {
for (let i = 0; i < this.selectedRowKeys.length; i++) {
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
if (this.selectedRowKeys.length <= 0) {
this.$message.warning(this.$t('selectARecord'))
return
}
this.dataSource = this.dataSource.filter(item => !!item)
this.selectedRowKeys = []
this.$confirm({
title: this.$t('confirmBatchDeletion'),
content: this.$t('deleteAData'),
onOk: () => {
for (let i = 0; i < this.selectedRowKeys.length; i++) {
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
}
this.dataSource = this.dataSource.filter(item => !!item)
this.selectedRowKeys = []
}
})
},
/**
* 对数组形式后端错误信息进行处理
@@ -469,11 +469,21 @@ export default {
},
// 批量删除
batchDel () {
for (let i = 0; i < this.selectedRowKeys.length; i++) {
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
if (this.selectedRowKeys.length <= 0) {
this.$message.warning(this.$t('selectARecord'))
return
}
this.dataSource = this.dataSource.filter(item => !!item)
this.selectedRowKeys = []
this.$confirm({
title: this.$t('confirmBatchDeletion'),
content: this.$t('deleteAData'),
onOk: () => {
for (let i = 0; i < this.selectedRowKeys.length; i++) {
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
}
this.dataSource = this.dataSource.filter(item => !!item)
this.selectedRowKeys = []
}
})
},
// 批量设置联络人
batchSetContact () {