浏览代码

优化台账重置按钮

qukaidi 4 年之前
父节点
当前提交
338d467ea4
共有 1 个文件被更改,包括 4 次插入4 次删除
  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);
     },
   },
 };