|
|
@ -236,10 +236,16 @@ const handleAddTable = (type)=>{ |
|
|
|
const handleDeleteTable = (item, index, type) => { |
|
|
|
if(type == 'from'){ |
|
|
|
// 来源 |
|
|
|
tableDataFrom.value.splice(index, 1) |
|
|
|
let itemIndex = tableDataFrom.value.indexOf(item) |
|
|
|
if(itemIndex>-1){ |
|
|
|
tableDataFrom.value.splice(itemIndex, 1) |
|
|
|
} |
|
|
|
}else { |
|
|
|
// 目标 |
|
|
|
tableDataTo.value.splice(index, 1) |
|
|
|
let itemIndex = tableDataTo.value.indexOf(item) |
|
|
|
if(itemIndex>-1){ |
|
|
|
tableDataTo.value.splice(itemIndex, 1) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 批量删除 |
|
|
|