Procházet zdrojové kódy

查询条件修改

zhongxiaoyu před 2 roky
rodič
revize
0ac8736040
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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) {