diff --git a/src/views/productionTesting/productionQuality.vue b/src/views/productionTesting/productionQuality.vue index 56b3682..5172cea 100644 --- a/src/views/productionTesting/productionQuality.vue +++ b/src/views/productionTesting/productionQuality.vue @@ -39,7 +39,7 @@ 检验结果 @@ -165,7 +165,7 @@ circle type="danger" icon="el-icon-delete" - @click="removeRules(scope.row.wpItemDetailList,subScope.$index, scope.row)" + @click="removeRules(scope.row.wpItemDetailList,subScope.$index, scope.row,subScope.row)" /> @@ -997,11 +997,11 @@ export default { isDel:2 }) }, - removeRules(data,index,row){ + removeRules(data,index,row,val){ if(row.checkUserRealName != null && row.checkUserRealName != ''){ return } - if(row.isDel != 1){ + if(val.isDel != 1){ data.splice(index,1) }else{ this.$message.error('该数据不可删除')