Pārlūkot izejas kodu

查询条件修改

zhongxiaoyu 2 gadi atpakaļ
vecāks
revīzija
0ac8736040
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/views/table/index.vue

+ 3 - 1
src/views/table/index.vue

@@ -440,6 +440,7 @@ export default {
       }
     },
     resetTable () {
+      this.dataContent = {}
       this.page = 0;
       this.noMore = false;
       this.tableData = [];
@@ -518,7 +519,8 @@ export default {
         })
       }
       this.resetTable()
-      this.getQuery(this.queryId, { filter: arr });
+      this.dataContent = { filter: arr }
+      this.getQuery(this.queryId);
     },
     //获取表格数据
     async getQuery (id, dataContent = this.dataContent) {