[update] 修改bug80303
This commit is contained in:
@@ -460,11 +460,21 @@ export default {
|
|||||||
},
|
},
|
||||||
// 批量删除
|
// 批量删除
|
||||||
batchDel () {
|
batchDel () {
|
||||||
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
this.dataSource = this.dataSource.filter(item => !!item)
|
this.$confirm({
|
||||||
this.selectedRowKeys = []
|
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 = []
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 对数组形式后端错误信息进行处理
|
* 对数组形式后端错误信息进行处理
|
||||||
|
|||||||
+14
-4
@@ -469,11 +469,21 @@ export default {
|
|||||||
},
|
},
|
||||||
// 批量删除
|
// 批量删除
|
||||||
batchDel () {
|
batchDel () {
|
||||||
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
this.dataSource = this.dataSource.filter(item => !!item)
|
this.$confirm({
|
||||||
this.selectedRowKeys = []
|
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 () {
|
batchSetContact () {
|
||||||
|
|||||||
Reference in New Issue
Block a user