|
@@ -784,11 +784,11 @@ export default {
|
|
|
|
|
|
|
|
this.phoneBar.on(EventList.OUTBOUND_START, (msg) => {
|
|
this.phoneBar.on(EventList.OUTBOUND_START, (msg) => {
|
|
|
console.log('outbound_start 事件:' + msg);
|
|
console.log('outbound_start 事件:' + msg);
|
|
|
- // 外呼开始时不显示聊天窗口和客户信息表单(由用户手动控制)
|
|
|
|
|
- // this.showChatContainer = true;
|
|
|
|
|
- // this.showCustomerForm = true;
|
|
|
|
|
- //// 加载历史沟通记录
|
|
|
|
|
- // this.loadCommunicationHistory();
|
|
|
|
|
|
|
+ // 外呼开始时显示聊天窗口和客户信息表单
|
|
|
|
|
+ this.showChatContainer = true;
|
|
|
|
|
+ this.showCustomerForm = true;
|
|
|
|
|
+ // 加载历史沟通记录
|
|
|
|
|
+ this.loadCommunicationHistory();
|
|
|
// 注意:此时通话尚未建立,uuid 可能还未生成,需要在 CALLER_ANSWERED 或 CALLEE_ANSWERED 事件中获取
|
|
// 注意:此时通话尚未建立,uuid 可能还未生成,需要在 CALLER_ANSWERED 或 CALLEE_ANSWERED 事件中获取
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -841,13 +841,12 @@ export default {
|
|
|
// 隐藏转接/咨询区域和会议区域(与 source 一致)
|
|
// 隐藏转接/咨询区域和会议区域(与 source 一致)
|
|
|
this.showTransferArea = false;
|
|
this.showTransferArea = false;
|
|
|
this.showConferenceArea = false;
|
|
this.showConferenceArea = false;
|
|
|
- // 客户信息表单已经在 OUTBOUND_START 时显示,这里不需要重复显示
|
|
|
|
|
|
|
+ // 客户信息表单保持显示状态,不自动隐藏
|
|
|
// 获取当前通话的 uuid
|
|
// 获取当前通话的 uuid
|
|
|
if (msg && msg.object && msg.object.uuid) {
|
|
if (msg && msg.object && msg.object.uuid) {
|
|
|
this.currentCallUuid = msg.object.uuid;
|
|
this.currentCallUuid = msg.object.uuid;
|
|
|
}
|
|
}
|
|
|
this.updatePhoneBar(msg, EventList.CALLER_HANGUP);
|
|
this.updatePhoneBar(msg, EventList.CALLER_HANGUP);
|
|
|
- // 不需要再次加载,已经在 OUTBOUND_START 时加载过了
|
|
|
|
|
|
|
|
|
|
// 通话结束后调用后端接口
|
|
// 通话结束后调用后端接口
|
|
|
this.handleCallEnd();
|
|
this.handleCallEnd();
|
|
@@ -868,13 +867,12 @@ export default {
|
|
|
// 隐藏转接/咨询区域和会议区域(与 source 一致)
|
|
// 隐藏转接/咨询区域和会议区域(与 source 一致)
|
|
|
this.showTransferArea = false;
|
|
this.showTransferArea = false;
|
|
|
this.showConferenceArea = false;
|
|
this.showConferenceArea = false;
|
|
|
- // 客户信息表单已经在 OUTBOUND_START 时显示,这里不需要重复显示
|
|
|
|
|
|
|
+ // 客户信息表单保持显示状态,不自动隐藏
|
|
|
// 获取当前通话的 uuid
|
|
// 获取当前通话的 uuid
|
|
|
if (msg && msg.object && msg.object.uuid) {
|
|
if (msg && msg.object && msg.object.uuid) {
|
|
|
this.currentCallUuid = msg.object.uuid;
|
|
this.currentCallUuid = msg.object.uuid;
|
|
|
}
|
|
}
|
|
|
this.updatePhoneBar(msg, EventList.CALLEE_HANGUP);
|
|
this.updatePhoneBar(msg, EventList.CALLEE_HANGUP);
|
|
|
- // 不需要再次加载,已经在 OUTBOUND_START 时加载过了
|
|
|
|
|
|
|
|
|
|
// 通话结束后调用后端接口
|
|
// 通话结束后调用后端接口
|
|
|
this.handleCallEnd();
|
|
this.handleCallEnd();
|