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