From 6028c3bb7c7bd21a7d0eeb951358865241b4ecb9 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 19 May 2021 17:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Assessment.vue | 10 +++++++--- src/components/page/Project.vue | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/page/Assessment.vue b/src/components/page/Assessment.vue index b535cc6..a24edfa 100644 --- a/src/components/page/Assessment.vue +++ b/src/components/page/Assessment.vue @@ -11,14 +11,14 @@
- + 不限 {{item.className}}
- + @@ -140,7 +140,7 @@ export default { keyword: function(val) { clearTimeout(this.searchTimer) this.searchTimer = setTimeout(() => { - this.getData() + this.initData() },500) } }, @@ -214,6 +214,10 @@ export default { this.handlePage() }).catch(err => {}) }, + initData(){ + this.pageNo = 1 + this.getData() + }, handlePage(){ let list = this.listDataAll this.listData = list.slice((this.pageNo - 1) * this.pageSize,this.pageNo * this.pageSize) diff --git a/src/components/page/Project.vue b/src/components/page/Project.vue index 61e69ed..cbf0550 100644 --- a/src/components/page/Project.vue +++ b/src/components/page/Project.vue @@ -11,7 +11,7 @@
- + {{item.name}}
- + @@ -182,7 +182,7 @@ export default { keyword: function(val) { clearTimeout(this.searchTimer) this.searchTimer = setTimeout(() => { - this.getData() + this.initData() },500) } }, @@ -234,6 +234,10 @@ export default { }).catch(err => {}) }).catch(res => {}); }, + initData(){ + this.pageNo = 1 + this.getData() + }, add(){ this.$store.commit("customerData", { customer_id : ''}); this.$router.push('/addclass');