소스 검색

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

Signed-off-by: 也曾为你、像超人 <1553592282@qq.com>
也曾为你、像超人 2 년 전
부모
커밋
e781f88eca
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      ruoyi-ui/src/views/monitor/logininfor/index.vue
  2. 1 1
      ruoyi-ui/src/views/monitor/operlog/index.vue

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

@@ -189,8 +189,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/monitor/operlog/index.vue

@@ -255,8 +255,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) {