From d8a853566cebedd89dc688c0957d8f618689fc35 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Thu, 1 Feb 2024 14:11:22 +0800 Subject: [PATCH] =?UTF-8?q?task#10677,tab=E5=88=87=E7=9A=84=E7=B4=A2?= =?UTF-8?q?=E5=BC=95bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseList/caseAuditList.vue | 7 +++++-- src/views/caseList/caseDetail.vue | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/caseList/caseAuditList.vue b/src/views/caseList/caseAuditList.vue index 3c1879c9..e8c270b7 100644 --- a/src/views/caseList/caseAuditList.vue +++ b/src/views/caseList/caseAuditList.vue @@ -65,11 +65,14 @@ export default { }, }, created() { - const urlParams = new URLSearchParams(window.location.search); - this.id = this.$route.params.id || urlParams.get('id') || this.$route.params.batchCode; + }, async mounted() { + const urlParams = new URLSearchParams(window.location.search); + this.id = this.$route.params.id || urlParams.get('id') || this.$route.params.batchCode; + // console.log(" this.id", this.id) this.activeIndex=this.$route.params?.activeIndex || 0 + // console.log(" this.activeIndex", this.activeIndex) await this.batchOrderCount(); await this.getList() }, diff --git a/src/views/caseList/caseDetail.vue b/src/views/caseList/caseDetail.vue index d5306308..f57de6ec 100644 --- a/src/views/caseList/caseDetail.vue +++ b/src/views/caseList/caseDetail.vue @@ -150,6 +150,7 @@ export default { this.id = this.$route.params.id; this.activeIndex=this.$route.params.index; this.batchCode=this.$route.params.batchCode + console.log(" this.batchCode", this.batchCode) }, async mounted(){ await this.getOrderDetail() @@ -158,11 +159,11 @@ export default { }); }, methods:{ + goPrePage(){ this.$router.push({ name: 'caseAuditList', // 目标路由的名称 params: { - id:this.id, activeIndex:this.activeIndex, batchCode:this.batchCode, }