duy 2 هفته پیش
والد
کامیت
90b237fddb
1فایلهای تغییر یافته به همراه19 افزوده شده و 3 حذف شده
  1. 19 3
      src/views/tentative/detect/test.vue

+ 19 - 3
src/views/tentative/detect/test.vue

@@ -1491,14 +1491,30 @@ const sortDialog = ref(false)
 const sortFormClick = ()=>{
     sortDialog.value = true
 }
+
 const sortType = ref('')
 const closeSort = ()=>{
     sortDialog.value = false
     sortType.value = ''
 }
-const sortClick = ()=>{
-    getTableData().then()
-    sortDialog.value = false
+const sortLoading = ref(false)
+const sortClick = async ()=>{
+    sortLoading.value = true
+    const { error, code, data } = await dataApi.updateSort({
+    
+        nodeId:searchForm.value.nodeId,
+         type:searchForm.value.type,
+        sortType:sortType.value,
+      
+        contractId: contractId.value,
+    })
+    //处理数据
+    sortLoading.value = false
+    if (!error && code === 200) {
+           sortDialog.value = false
+       getTableData()
+
+    } 
 
 
 }