Selaa lähdekoodia

关联取样取消

duy 1 kuukausi sitten
vanhempi
commit
f5512ddfc9
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  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()
 }