Explorar el Código

查询条件修改

zhongxiaoyu hace 2 años
padre
commit
0ac8736040
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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) {