检验项目删除

dev-scheduling
zhangdi 2 months ago
parent 586c7fb353
commit e3c13df9b0
  1. 12
      src/views/processManagement/components/addTemplateDialog.vue

@ -442,8 +442,8 @@ export default {
}, },
tableData2: [], tableData2: [],
tableData: [], tableData: [],
processDeleteIds: [], //id detailIdList: [], //id
projectDeleteIds: [], //id modelProjectIdList: [], //id
}, },
rules: { rules: {
promodel: { promodel: {
@ -698,7 +698,7 @@ export default {
.filter(row => row.id != null && row.id !== '') .filter(row => row.id != null && row.id !== '')
.map(row => row.id); .map(row => row.id);
this.ruleForm.processDeleteIds.push(...idsToDelete); this.ruleForm.detailIdList.push(...idsToDelete);
// tableData // tableData
const tempIds = selected.map(row => row._tempId).filter(id => id != null); const tempIds = selected.map(row => row._tempId).filter(id => id != null);
@ -724,7 +724,7 @@ export default {
.filter(row => row.id != null && row.id !== '') .filter(row => row.id != null && row.id !== '')
.map(row => 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 tempIds = selected.map(row => row._tempId).filter(id => id != null);
const realIds = selected.map(row => row.id).filter(id => id != null); const realIds = selected.map(row => row.id).filter(id => id != null);
@ -778,8 +778,8 @@ export default {
let query = { let query = {
promodel, promodel,
tableData, tableData,
processDeleteIds: this.ruleForm.processDeleteIds, detailIdList: this.ruleForm.detailIdList,
projectDeleteIds: this.ruleForm.projectDeleteIds, modelProjectIdList: this.ruleForm.modelProjectIdList,
}; };
console.log('提交数据:', query); console.log('提交数据:', query);

Loading…
Cancel
Save