ソースを参照

试验排序修改

duy 2 週間 前
コミット
b657a94173
1 ファイル変更24 行追加3 行削除
  1. 24 3
      src/views/tentative/detect/test.vue

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

@@ -1492,13 +1492,34 @@ 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()
+
+    } 
 
 
 }