西海岸:申购车删除批量删除id参数更改

This commit is contained in:
guoyue 2022-10-17 14:00:16 +08:00
parent 29ace46c69
commit 5ac06ce8d6
1 changed files with 4 additions and 2 deletions

View File

@ -650,17 +650,19 @@ const ceshiFunction = () => {
} }
// delOne delList handleDelete // delOne delList handleDelete
const handleDelete = (item, index) => { const handleDelete = (item, index) => {
console.log('item, index------------>', item, index);
console.log('item------------>', item); console.log('item------------>', item);
let delArr = []; let delArr = [];
// //
if (item) { if (index) {
delArr = [item.id] delArr = [item.id]
} else { } else {
// //
if (checkedListAbility.value.length == 0) { if (checkedListAbility.value.length == 0) {
return message.warning('请先选择需要操作的数据!') return message.warning('请先选择需要操作的数据!')
} else { } else {
delArr = checkedListAbility.value.map(v=>v.id) delArr = checkedListAbility.value
} }
} }
sgcDel({ sgcDel({