调解室监听路由变化

This commit is contained in:
tdg930622 2025-01-21 16:32:28 +08:00
parent e6d5273b50
commit 8a96904fa7

View File

@ -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() //