调解室监听路由变化

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: [],// mediationRecord: [],//
baseInfo: {},// baseInfo: {},//
obligorInfo: [],// obligorInfo: [],//
caseId: '',//id caseId: 0,//id
// //
contactAddObj: {}, contactAddObj: {},
contactAddFlag: false, contactAddFlag: false,
@ -427,19 +427,29 @@ export default {
this.videoReminderData = JSON.parse(val) 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() { async created() {
// if(this.$route.query.caseId != null && this.$route.query.caseId != undefined) {
if(this.$route.query.caseId != null && this.$route.query.caseId != undefined) { // this.caseId = this.$route.query.caseId || null
this.caseId = this.$route.query.caseId || null // this.queue = this.$route.query.queue || null
this.queue = this.$route.query.queue || null // await this.getCaseInfoById();//
await this.getCaseInfoById();// // }
}
this.queue = this.$route.query.queue || null
await this.callingTodayCount() //
this.callingTodayCount() //
this.missedCallList();//
if (this.queue) { if (this.queue) {
await this.callingQueue() // await this.callingQueue() //