From d769023a47e1c62ebce20caa5a8931cb04503091 Mon Sep 17 00:00:00 2001 From: tianq Date: Wed, 12 Apr 2023 14:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E9=A2=84=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataBoard/renfang/resi/class.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/dataBoard/renfang/resi/class.vue b/src/views/dataBoard/renfang/resi/class.vue index f7b587183..015fa306e 100644 --- a/src/views/dataBoard/renfang/resi/class.vue +++ b/src/views/dataBoard/renfang/resi/class.vue @@ -134,7 +134,6 @@ export default { const type_name = getQueryPara('type_name'); this.breadList[1].meta.title = type_name + '居民列表'; this.tableTitle = type_name + '居民列表'; - this.pageNo = 1; this.getList(); this.getCount(); @@ -142,12 +141,19 @@ export default { this.getSubclass(); } }, - + created() { + this.pageNo = 1; + }, watch: { - subclassId() { - this.pageNo = 1; - this.getList(); - this.getCount(); + $route(to, from) { + this.$router.go(0); + }, + subclassId: { + handler(newVal, oldVal) { + this.pageNo = 1; + this.getList(); + this.getCount(); + } } }, @@ -211,7 +217,6 @@ export default { }, async getList() { - console.log('dddddddddddddddddddd', this.type_name); const { org_id, type_id, subclassId, pageNo, pageSize } = this; this.loading = true; let url = '';