西海岸:申购车删除批量删除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
const handleDelete = (item, index) => {
console.log('item, index------------>', item, index);
console.log('item------------>', item);
let delArr = [];
//
if (item) {
if (index) {
delArr = [item.id]
} else {
//
if (checkedListAbility.value.length == 0) {
return message.warning('请先选择需要操作的数据!')
} else {
delArr = checkedListAbility.value.map(v=>v.id)
delArr = checkedListAbility.value
}
}
sgcDel({