This commit is contained in:
许允枞 2024-11-20 15:45:13 +08:00
parent 93d689853e
commit 4541fcfcd2

View File

@ -279,14 +279,11 @@ import {getCustomerSource, addCustomerSource, delCustomerSource, delCustomerSour
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
console.log('当前行',row)
let dictCodes = [] let dictCodes = []
if (row.id) { if (row.id) {
console.log('看看执行')
dictCodes.push(row.id) dictCodes.push(row.id)
} else if (this.ids) { } else if (this.ids) {
dictCodes = this.ids dictCodes = this.ids
console.log('看看执行ids')
} }
this.$modal.confirm('是否确认删除字典编码为"' + dictCodes + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除字典编码为"' + dictCodes + '"的数据项?').then(function() {
return delCustomerSourceBatch(dictCodes); return delCustomerSourceBatch(dictCodes);