瀏覽代碼

查询条件修改

zhongxiaoyu 2 年之前
父節點
當前提交
0ac8736040
共有 1 個文件被更改,包括 3 次插入1 次删除
  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) {