From b181a3717e72665eaea6df7756dc192c6906bb78 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 4 Nov 2025 09:04:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogbw_check_table.vue | 28 ++++++++++++++----------- 1 file changed, 16 insertions(+), 12 deletions(-) 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;