Bläddra i källkod

处理数据更改

duy 2 år sedan
förälder
incheckning
3c6cb5c1a5
1 ändrade filer med 15 tillägg och 7 borttagningar
  1. 15 7
      src/views/tentative/detect/test-form.vue

+ 15 - 7
src/views/tentative/detect/test-form.vue

@@ -258,6 +258,13 @@ const getSearchNodeTables = async () => {
             tableType: tabTypeKey.value,
             isAdd: 1
         })
+          //处理数据
+        isLoading.value = false
+        if (!error && code === 200) {
+            listItemData.value = getArrValue(data)
+        } else {
+            listItemData.value = []
+        }
     }else{
         const { error, code, data } = await dataApi.searchNodeTables({
             id: dataId,
@@ -268,15 +275,16 @@ const getSearchNodeTables = async () => {
             tableType: tabTypeKey.value,
             
         })
+          //处理数据
+        isLoading.value = false
+        if (!error && code === 200) {
+            listItemData.value = getArrValue(data)
+        } else {
+            listItemData.value = []
+        }
     }
   
-    //处理数据
-    isLoading.value = false
-    if (!error && code === 200) {
-        listItemData.value = getArrValue(data)
-    } else {
-        listItemData.value = []
-    }
+  
 }
 //获取数据
 const getTableDataAll = () => {