检验项目删除

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: [],
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);

Loading…
Cancel
Save