소스 검색

关联取样取消

duy 1 개월 전
부모
커밋
f5512ddfc9
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      src/views/tentative/detect/commission/sampling.vue

+ 8 - 1
src/views/tentative/detect/commission/sampling.vue

@@ -184,7 +184,14 @@ const rowCancel = () => {
 //确认关联取样材料
 const linkSamplingClick = () => {
     curId.value = currentId.value
-    emit('change', rowItem.value)
+    // emit('change', rowItem.value)
+        if (currentId.value) {
+        emit('change', rowItem.value)
+    } else {
+        emit('change', {}) // 如果没有选择,传递空对象
+    }
+    console.log(rowItem.value, 'rowItem.value')
+    
     linkSamplingClose()
 }