From 8a96904fa7b14495c582dd96fa80b27e6ca6aa97 Mon Sep 17 00:00:00 2001 From: tdg930622 <51816549+tdg930622@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=A7=A3=E5=AE=A4=E7=9B=91=E5=90=AC?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MediationRoom.vue | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/pages/mediation-page/components/MediationRoom.vue b/src/pages/mediation-page/components/MediationRoom.vue index f2e0bac..75fb92c 100644 --- a/src/pages/mediation-page/components/MediationRoom.vue +++ b/src/pages/mediation-page/components/MediationRoom.vue @@ -277,7 +277,7 @@ export default { mediationRecord: [],//调解记录 baseInfo: {},//基本信息 obligorInfo: [],//债务人信息 - caseId: '',//案件id + caseId: 0,//案件id // 联系人 contactAddObj: {}, contactAddFlag: false, @@ -427,19 +427,29 @@ export default { this.videoReminderData = JSON.parse(val) } } + }, + '$route.query': { + handler(newQuery) { + console.log(newQuery, '---newQuery') + if (newQuery && newQuery.caseId != null && newQuery.caseId != undefined && this.caseId !== newQuery.caseId){ + this.caseId = this.$route.query.caseId || null + this.getCaseInfoById();//获取详情 + this.missedCallList();//未接来电 + } + }, + immediate: true, + deep: true } }, async created() { - - if(this.$route.query.caseId != null && this.$route.query.caseId != undefined) { - this.caseId = this.$route.query.caseId || null - this.queue = this.$route.query.queue || null - await this.getCaseInfoById();//获取详情 - } - - - this.callingTodayCount() //今日通话次数 - this.missedCallList();//未接来电 + // if(this.$route.query.caseId != null && this.$route.query.caseId != undefined) { + // this.caseId = this.$route.query.caseId || null + // this.queue = this.$route.query.queue || null + // await this.getCaseInfoById();//获取详情 + // } + + this.queue = this.$route.query.queue || null + await this.callingTodayCount() //今日通话次数 if (this.queue) { await this.callingQueue() //呼叫队列