qukaidi 4 anni fa
parent
commit
8ae3a113b8
1 ha cambiato i file con 9 aggiunte e 12 eliminazioni
  1. 9 12
      src/views/fleet/fleetStatistics/index.vue

+ 9 - 12
src/views/fleet/fleetStatistics/index.vue

@@ -289,7 +289,7 @@
         :fixed="item.fixed"
       />
     </el-table>
-    <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px">
+    <el-dialog title="自定义列显示" :visible.sync="showSetting2" width="700px">
       <div>配置排序列数据(拖动调整顺序)</div>
       <div style="margin-left: 17px">
         <el-checkbox
@@ -1028,8 +1028,7 @@ export default {
     /** 查询订单主列表 */
     getList() {
       if (!this.queryParams.acceptDateList) {
-        this.$message.error("请选择接单时间");
-        return false;
+        return this.$message.error("请选择接单时间");
       }
       this.loading = true;
       queryLedgerList(this.queryParams).then((response) => {
@@ -1064,15 +1063,13 @@ export default {
     },
     /** 重置按钮操作 */
     resetQuery() {
-      this.resetForm("queryForm");
-      this.queryParams = {
-        pageNum: 1,
-        pageSize: 10,
-        stlStatus: null,
-        accchkStatus: null,
-        invStatus: null,
-      };
-      this.handleQuery();
+      this.queryParams = this.$options.data().queryParams;
+      this.loading = true;
+      queryLedgerList(this.queryParams).then((response) => {
+        this.tabularData = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
     },
   },
 };