Преглед на файлове

优化日志操作中重置按钮时重复查询的问题

RuoYi преди 2 години
родител
ревизия
f250c6ee93
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      ruoyi-ui/src/views/system/logininfor/index.vue
  2. 1 1
      ruoyi-ui/src/views/system/operlog/index.vue

+ 1 - 1
ruoyi-ui/src/views/system/logininfor/index.vue

@@ -186,8 +186,8 @@ export default {
     resetQuery() {
       this.dateRange = [];
       this.resetForm("queryForm");
+      this.queryParams.pageNum = 1;
       this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order)
-      this.handleQuery();
     },
     /** 多选框选中数据 */
     handleSelectionChange(selection) {

+ 1 - 1
ruoyi-ui/src/views/system/operlog/index.vue

@@ -254,8 +254,8 @@ export default {
     resetQuery() {
       this.dateRange = [];
       this.resetForm("queryForm");
+      this.queryParams.pageNum = 1;
       this.$refs.tables.sort(this.defaultSort.prop, this.defaultSort.order)
-      this.handleQuery();
     },
     /** 多选框选中数据 */
     handleSelectionChange(selection) {