ZaiZai 1 年之前
父节点
当前提交
a2542d94c0
共有 3 个文件被更改,包括 9 次插入5 次删除
  1. 1 1
      public/version.json
  2. 4 2
      src/views/tentative/collect/test.vue
  3. 4 2
      src/views/tentative/detect/test.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240516175557"
+  "value": "20240517113743"
 }

+ 4 - 2
src/views/tentative/collect/test.vue

@@ -518,8 +518,10 @@ const getAcquisitionData = async (id) => {
     if (isNullES(id) || id == 0) return
     const { data } = await acquisitionApi.selectDataInfoById(id)
     const res = getObjVal(data)
-    relatedData3.value = res ? [res] : []
-    //setRelatedColumn3(res.type)
+    if (res) {
+        relatedData3.value = res ? [res] : []
+        setRelatedColumn3(res.testTypePId)
+    }
 }
 
 //设置表头

+ 4 - 2
src/views/tentative/detect/test.vue

@@ -1080,8 +1080,10 @@ const getAcquisitionData = async (id) => {
     if (isNullES(id) || id == 0) return
     const { data } = await acquisitionApi.selectDataInfoById(id)
     const res = getObjVal(data)
-    relatedData3.value = res ? [res] : []
-    //setRelatedColumn3(res.type)
+    if (res) {
+        relatedData3.value = res ? [res] : []
+        setRelatedColumn3(res.testTypePId)
+    }
 }
 
 //设置表头