From bfb748bf490e13399f308d54addf33fe6c1b0046 Mon Sep 17 00:00:00 2001 From: 刘鸿 Date: Fri, 3 Jan 2025 14:31:23 +0800 Subject: [PATCH] fix:修复列表过滤异常 --- src/views/basic/askTestQuestion/index.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/basic/askTestQuestion/index.vue b/src/views/basic/askTestQuestion/index.vue index b8f9198..5ce6a61 100644 --- a/src/views/basic/askTestQuestion/index.vue +++ b/src/views/basic/askTestQuestion/index.vue @@ -30,7 +30,7 @@ - + 筛选 @@ -390,6 +390,10 @@ export default { await this._loadQueryDatas(); }, methods: { + async _filter() { + this.listPage.page = 1; + await this._serach(); + }, async downExcel() { let url; let that = this; @@ -571,6 +575,7 @@ export default { ? this.$request.pPaperList : this.$request.fetchPaperList; + var queryParams = { classId: "", subjectName: "", @@ -580,8 +585,7 @@ export default { end: null, type: this.dataType, //试卷类型 share: this.tabType, //分享类型 - }; - this.listPage.page = 1; + }; queryParams.classId = this.query.class; queryParams.subjectName = this.query.subject; queryParams.tagId = this.query.tagId; @@ -605,8 +609,7 @@ export default { this.queryLoading = false; this.createdCount = data?.myCount || 0; this.sharedCount = data?.gradeCount || 0; - this.listPage.total = data.total; - console.log('page', this.listPage) + this.listPage.total = data.total; if (this.tabType == "0") { this.defaultList = []; if (data?.list) this.defaultList = [...data?.list]; -- libgit2 0.21.4