From 74b27825251007a085441429998c2ac217f814cd Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 26 Feb 2024 15:05:02 +0800 Subject: [PATCH] =?UTF-8?q?task#11347,index=E5=80=BC=E8=AE=A1=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseList/caseAuditList.vue | 10 +++++++--- src/views/caseList/caseList.vue | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/caseList/caseAuditList.vue b/src/views/caseList/caseAuditList.vue index 1504899a..f1bdcedb 100644 --- a/src/views/caseList/caseAuditList.vue +++ b/src/views/caseList/caseAuditList.vue @@ -101,7 +101,12 @@ export default { }, methods:{ goPrePage(){ - this.$router.push({ name: 'caseList', }); + this.$router.push({ + name: 'caseList', + params: { + type: this.type + } + }); }, onRefresh() { this.getList() @@ -147,8 +152,7 @@ export default { index:this.activeIndex, batchCode:this.id, getUrlId:this.getUrlId, - type:this.type - } + type:this.type,} }); }, diff --git a/src/views/caseList/caseList.vue b/src/views/caseList/caseList.vue index 3051f191..ad0c7bf7 100644 --- a/src/views/caseList/caseList.vue +++ b/src/views/caseList/caseList.vue @@ -73,6 +73,8 @@ export default { async mounted() { await this.getCount(); await this.getList() + // console.log("***",this.$route.params.type) + this.activeIndex = (this.$route.params.type - 1) || this.activeIndex }, computed:{ show() { @@ -81,7 +83,7 @@ export default { }, methods:{ async onLoad(){ - console.log('00000000000000000000') + // console.log('00000000000000000000') this.pageNum++; await this.getList() // 加载状态结束 @@ -146,7 +148,8 @@ export default { name: 'caseAuditList', // 目标路由的名称 params: { id: id, // 参数对象的属性 - type: this.activeIndex+1 + type: this.activeIndex+1, + page1Index:this.activeIndex } }); },