Forráskód Böngészése

试验记录是否新增字段增加

duy 2 éve
szülő
commit
c37d5fc4f2
1 módosított fájl, 22 hozzáadás és 8 törlés
  1. 22 8
      src/views/tentative/detect/test-form.vue

+ 22 - 8
src/views/tentative/detect/test-form.vue

@@ -248,14 +248,28 @@ const listItemData = ref([])
 const listDeviceUseIds=ref('')
 const getSearchNodeTables = async () => {
     isLoading.value = true
-    const { error, code, data } = await dataApi.searchNodeTables({
-        id: dataId,
-        projectId: projectId.value,
-        contractId: contractId.value,
-        primaryKeyId: nodeId,
-        type: authBtnTabKey.value,
-        tableType: tabTypeKey.value
-    })
+    if(isaddType){
+        const { error, code, data } = await dataApi.searchNodeTables({
+            id: dataId,
+            projectId: projectId.value,
+            contractId: contractId.value,
+            primaryKeyId: nodeId,
+            type: authBtnTabKey.value,
+            tableType: tabTypeKey.value,
+            isAdd: 1
+        })
+    }else{
+        const { error, code, data } = await dataApi.searchNodeTables({
+            id: dataId,
+            projectId: projectId.value,
+            contractId: contractId.value,
+            primaryKeyId: nodeId,
+            type: authBtnTabKey.value,
+            tableType: tabTypeKey.value,
+            
+        })
+    }
+  
     //处理数据
     isLoading.value = false
     if (!error && code === 200) {