diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index e6584f95..ad3893ce 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -990,18 +990,22 @@ export default { that.$refs.dialogForm.validate((valid) => { if (valid) { that.selectWpr.forEach(item => { - item.ftest.ftestdefects.forEach(defect => { - let defectindex = that.setForm.defectids.indexOf(defect.defect); - if(defectindex > -1){ - defect.has = that.defectlists[defectindex].value; - } - }) - item.ftest.ftestitems.forEach(testitem => { - let testitemindex = that.setForm.testitemids.indexOf(testitem.testitem); - if( testitemindex > -1){ - testitem.test_val_json = that.testitemlists[testitemindex].value; - } - }) + item.ftest.ftestdefects = []; + if(that.defectlists.length>0){ + that.defectlists.forEach((item1) => { + let obj = {}; + obj.defect = item1.defect; + obj.has = item1.value; + item.ftest.ftestdefects.push(obj); + }) + } + + // item.ftest.ftestdefects.forEach(defect => { + // let defectindex = that.setForm.defectids.indexOf(defect.defect); + // if(defectindex > -1){ + // defect.has = that.defectlists[defectindex].value; + // } + // }) }); that.$API.wpm.mlogbw.update.req("bulk",that.selectWpr).then((res) => { that.setVisible = false;