|
|
|
@ -962,10 +962,9 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}); |
|
|
|
}); |
|
|
|
let deleteIds = node.childNodes.map(child => child.id); |
|
|
|
console.log('需要删除的子工序ID列表:', node); |
|
|
|
console.log('需要删除的子工序ID列表:', deleteIds); |
|
|
|
|
|
|
|
// 调用删除API(替换为你的实际API) |
|
|
|
// 调用删除API(替换为你的实际API) |
|
|
|
await craftBatchRemoval({ id: deleteIds.join(',') }).then(res => { |
|
|
|
await craftBatchRemoval({ id: node.id}).then(res => { |
|
|
|
this.$message.success('删除成功'); |
|
|
|
this.$message.success('删除成功'); |
|
|
|
this.getDetails(); |
|
|
|
this.getDetails(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|