Ver Fonte

优化台账重置按钮

qukaidi há 4 anos atrás
pai
commit
338d467ea4
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      src/views/fleet/fleetStatistics/index.vue

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

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