Kaynağa Gözat

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

RuoYi 3 yıl önce
ebeveyn
işleme
f250c6ee93

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

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

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

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