Explorar o código

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

RuoYi %!s(int64=3) %!d(string=hai) anos
pai
achega
f250c6ee93

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

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

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

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