diff --git a/src/views/processManagement/components/addTemplateDialog.vue b/src/views/processManagement/components/addTemplateDialog.vue index 1320111..7fa4a28 100644 --- a/src/views/processManagement/components/addTemplateDialog.vue +++ b/src/views/processManagement/components/addTemplateDialog.vue @@ -442,8 +442,8 @@ export default { }, tableData2: [], tableData: [], - processDeleteIds: [], //工序删除id - projectDeleteIds: [], //项目的删除id + detailIdList: [], //工序删除id + modelProjectIdList: [], //项目的删除id }, rules: { promodel: { @@ -698,7 +698,7 @@ export default { .filter(row => row.id != null && row.id !== '') .map(row => row.id); - this.ruleForm.processDeleteIds.push(...idsToDelete); + this.ruleForm.detailIdList.push(...idsToDelete); // 从 tableData 中移除选中行(包括临时行) const tempIds = selected.map(row => row._tempId).filter(id => id != null); @@ -724,7 +724,7 @@ export default { .filter(row => row.id != null && row.id !== '') .map(row => row.id); - this.ruleForm.projectDeleteIds.push(...idsToDelete); + this.ruleForm.modelProjectIdList.push(...idsToDelete); const tempIds = selected.map(row => row._tempId).filter(id => id != null); const realIds = selected.map(row => row.id).filter(id => id != null); @@ -778,8 +778,8 @@ export default { let query = { promodel, tableData, - processDeleteIds: this.ruleForm.processDeleteIds, - projectDeleteIds: this.ruleForm.projectDeleteIds, + detailIdList: this.ruleForm.detailIdList, + modelProjectIdList: this.ruleForm.modelProjectIdList, }; console.log('提交数据:', query);