西海岸:申购车删除批量删除id参数更改
This commit is contained in:
parent
29ace46c69
commit
5ac06ce8d6
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue