Przeglądaj źródła

关联取样取消

duy 1 miesiąc temu
rodzic
commit
f5512ddfc9

+ 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()
 }