Pārlūkot izejas kodu

优化台账重置按钮

qukaidi 4 gadi atpakaļ
vecāks
revīzija
338d467ea4
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      src/views/fleet/fleetStatistics/index.vue

+ 4 - 4
src/views/fleet/fleetStatistics/index.vue

@@ -1065,11 +1065,11 @@ export default {
     resetQuery() {
       this.queryParams = this.$options.data().queryParams;
       this.loading = true;
-      queryLedgerList(this.queryParams).then((response) => {
-        this.tabularData = response.rows;
-        this.total = response.total;
+      setTimeout(() => {
         this.loading = false;
-      });
+        this.tabularData =[];
+        this.total = 0;
+      }, 400);
     },
   },
 };