From 90ce3fa8f3e187246cd0182f5fcc907ed1bb3ec3 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 2 Jun 2022 17:09:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=AD=A6=E5=91=98?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5=E7=A0=81=E6=94=B9=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 2 +- src/views/article/MyList.vue | 3 ++- src/views/article/contactMine.vue | 2 ++ src/views/exam/MyExamTask.vue | 2 ++ src/views/qa/MyList.vue | 4 +++- src/views/qa/MyReplys.vue | 2 ++ src/views/share/MyList.vue | 6 ++++++ src/views/share/ToList.vue | 6 ++++++ src/views/user/MyAssess.vue | 11 ++++++++--- src/views/user/MyFavorites.vue | 8 ++++++++ 10 files changed, 40 insertions(+), 6 deletions(-) diff --git a/src/views/Index.vue b/src/views/Index.vue index 3edae977..59b5663f 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -368,7 +368,7 @@ export default { device:1, orderField: orderType == 1 ? '' : 'studys', orderAsc: false, - topOrder:true, + // topOrder:true, pageIndex: pageIndex }; let isTopList = []; diff --git a/src/views/article/MyList.vue b/src/views/article/MyList.vue index 80dbafc9..3d0a15c3 100644 --- a/src/views/article/MyList.vue +++ b/src/views/article/MyList.vue @@ -91,6 +91,7 @@ export default { methods: { search(){ this.isSearh = true; + this.pageData.pageIndex = 1; this.getArticleList() }, saveSuccess(data){ @@ -127,7 +128,7 @@ export default { }, reset(){ - + this.pageData.pageIndex = 1; this.pageData.keyword = '', this.pageData.status = '' this.getArticleList(); diff --git a/src/views/article/contactMine.vue b/src/views/article/contactMine.vue index 18874e52..2f265100 100644 --- a/src/views/article/contactMine.vue +++ b/src/views/article/contactMine.vue @@ -141,6 +141,7 @@ export default { components: {}, methods: { getList() { + this.dataList.pageIndex = 1; this.isSearh = true; this.getData(); }, @@ -187,6 +188,7 @@ export default { }) }, reset(){ + this.dataList.pageIndex = 1; this.dataList.send = '', this.type = 0; this.getData(); diff --git a/src/views/exam/MyExamTask.vue b/src/views/exam/MyExamTask.vue index 43fd5a3f..035cc29c 100644 --- a/src/views/exam/MyExamTask.vue +++ b/src/views/exam/MyExamTask.vue @@ -113,11 +113,13 @@ }, search(){ this.isSearh = true; + this.pageIndex =1; this.query() }, reset() { this.testName = ''; this.status=''; + this.pageIndex =1; this.query(); this.isSearh = false; }, diff --git a/src/views/qa/MyList.vue b/src/views/qa/MyList.vue index 2e0f4fa5..6671abca 100644 --- a/src/views/qa/MyList.vue +++ b/src/views/qa/MyList.vue @@ -94,12 +94,14 @@ export default { reset(){ this.queryObj.keyWord = '', - this.queryObj.isResolve = '' + this.queryObj.isResolve = ''; + this.queryObj.pageIndex =1; this.getData(); this.isSearh = false; }, getList() { this.isSearh = true; + this.queryObj.pageIndex =1; this.getData(); }, //获取列表数据 diff --git a/src/views/qa/MyReplys.vue b/src/views/qa/MyReplys.vue index de8ee878..ae3992b1 100644 --- a/src/views/qa/MyReplys.vue +++ b/src/views/qa/MyReplys.vue @@ -85,6 +85,7 @@ export default { }, methods: { getList() { + this.queryObj.pageIndex = 1; this.isSearh = true; this.getData(); }, @@ -104,6 +105,7 @@ export default { }); }, reset(){ + this.queryObj.pageIndex = 1; this.queryObj.keyWord = ''; this.queryObj.isResolve = ''; this.getData(); diff --git a/src/views/share/MyList.vue b/src/views/share/MyList.vue index 7834cc98..cbd9be3a 100644 --- a/src/views/share/MyList.vue +++ b/src/views/share/MyList.vue @@ -149,6 +149,9 @@ }, methods:{ queryData(){ + this.qaList.pageIndex = 1; + this.articleList.pageIndex = 1; + this.courseList.pageIndex = 1; this.isSearh = true; if (this.tabName == 'qa') { this.findQa(); @@ -161,6 +164,9 @@ } }, resData() { + this.qaList.pageIndex = 1; + this.articleList.pageIndex = 1; + this.courseList.pageIndex = 1; this.keyword = ''; this.isRead = ''; this.queryData(); diff --git a/src/views/share/ToList.vue b/src/views/share/ToList.vue index 6878033f..c7689e2d 100644 --- a/src/views/share/ToList.vue +++ b/src/views/share/ToList.vue @@ -170,6 +170,9 @@ export default { }, methods: { queryData() { + this.qaList.pageIndex = 1; + this.articleList.pageIndex = 1; + this.courseList.pageIndex = 1; this.isSearh= true; if (this.tabName == 'qa') { this.findQa(); @@ -185,6 +188,9 @@ export default { resData() { this.keyword = ''; this.isRead = ''; + this.qaList.pageIndex = 1; + this.articleList.pageIndex = 1; + this.courseList.pageIndex = 1; this.queryData(); this.isSearh= false; }, diff --git a/src/views/user/MyAssess.vue b/src/views/user/MyAssess.vue index 610254f8..8a2a1e7b 100644 --- a/src/views/user/MyAssess.vue +++ b/src/views/user/MyAssess.vue @@ -7,7 +7,7 @@ - 搜索 + 搜索 重置 @@ -82,6 +82,10 @@ jumpRouter(item) { window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=quizsummary`) }, + getData() { + this.page=1; + this.findList(); + }, findList(){ let params={ keyword:this.keyword, @@ -110,8 +114,9 @@ this.findList() }, reset(){ - this.keyword = '' - this.findList(); + this.keyword = ''; + this.page=1; + this.findList(); }, getItem(item){ if(item.cover[0].url){ diff --git a/src/views/user/MyFavorites.vue b/src/views/user/MyFavorites.vue index 5ba89ed5..0a0c008b 100644 --- a/src/views/user/MyFavorites.vue +++ b/src/views/user/MyFavorites.vue @@ -278,6 +278,10 @@ export default { }, methods: { queryData() { + this.qaList.pageIndex = 1; + this.articleList.pageIndex = 1; + this.courseList.pageIndex = 1; + this.dataList.pageIndex = 1; this.isSearh = true; if (this.tabName == 'qa') { this.findQa(); @@ -296,6 +300,10 @@ export default { } }, resData() { + this.qaList.pageIndex = 1; + this.articleList.pageIndex = 1; + this.courseList.pageIndex = 1; + this.dataList.pageIndex = 1; this.keyword = ''; this.isRead = ''; this.courseList.type = '';