调解室监听路由变化
This commit is contained in:
parent
e6d5273b50
commit
8a96904fa7
@ -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() //呼叫队列
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user