From de1430b1095c04fcda3a01172cfb772a92846130 Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Thu, 5 Feb 2026 11:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=88=A0=E9=99=A4=E5=B7=A5?= =?UTF-8?q?=E5=BA=8F=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/processMainte/processPlanning.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/processManagement/components/processMainte/processPlanning.vue b/src/views/processManagement/components/processMainte/processPlanning.vue index 6f941a5..31fcc02 100644 --- a/src/views/processManagement/components/processMainte/processPlanning.vue +++ b/src/views/processManagement/components/processMainte/processPlanning.vue @@ -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(); });