From f73ac8d2b62d348217f50199d2d3c7dac5582edb Mon Sep 17 00:00:00 2001 From: jinna Date: Fri, 27 Mar 2026 18:43:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=B4=A8=E9=87=8F=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionTesting/productionQuality.vue | 75 +++++++++++-------- 1 file changed, 43 insertions(+), 32 deletions(-) diff --git a/src/views/productionTesting/productionQuality.vue b/src/views/productionTesting/productionQuality.vue index 8ba590c..cc743a7 100644 --- a/src/views/productionTesting/productionQuality.vue +++ b/src/views/productionTesting/productionQuality.vue @@ -136,7 +136,15 @@ @expand-change="handleExpandChange" :default-expand-all="false" > - + @@ -308,10 +316,10 @@ width="200px" align="center" > - + - + @@ -335,7 +343,7 @@ >
- +
@@ -347,7 +355,7 @@ align="center" > @@ -371,7 +379,7 @@ 合格 不合格 @@ -959,13 +967,16 @@ export default { }, getRowClass(row, index) { let res = []; - if (row.row.item.name != '尺寸检测' && row.row.item.name != '厚度检测') - //即改行没有子元素时,添加row-expand-cover类 - // res.push('row-expand-cover') + if (row.row.item.name != '尺寸检测' && row.row.item.name != '厚度检测'){ return 'row-expand-cover'; - /* if (row.operate == 2) - res.push('hide-row') - return res.join(' ') */ + }else if( + row.row.item.name == '尺寸检测' && + (!row.row.wpItemDetailList || row.row.wpItemDetailList.length === 0) + ){ + return 'row-expand-cover'; + } + return ''; + }, testMeasurementData(row, index) { const itemDetail = {