Commit 03f6f08b by chenwq

fix(allocation): 修复取消分配时数据删除不彻底的问题

使用filter替代splice确保完全移除指定id的数据项,并添加调试日志
1 parent 07f089f5
......@@ -528,7 +528,8 @@ export default {
// 取消
cancelAllocation(row, index) {
this.chooseDataList.splice(index, 1)
console.log(row, index)
this.chooseDataList = this.chooseDataList.filter(item => item.id != row.id)
},
handleAddConfirm(data) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!