Przeglądaj źródła

客户沟通表单维护显示

peicj 2 tygodni temu
rodzic
commit
392e147fb0

+ 7 - 7
src/assets/callCenterPhoneBarSdk/ccPhoneBarSocket.js

@@ -77,7 +77,7 @@ function ccPhoneBarSocket() {
     //呼叫控制服务器地址
     'ipccServer': 'sip.ylrzcloud.com',
     //是否启用websocket安全连接
-    'enableWss' : true,
+    'enableWss' : false,
     //语音编码
     'callCodec' : 'pcma',
     //是否发送心跳数据
@@ -225,14 +225,14 @@ function ccPhoneBarSocket() {
 
     console.log("callConfig:", JSON.stringify(this.callConfig));
     //线上enableWss: true 本地调试为false
-    // if(_cc.callConfig.enableWss){
-    //   wsuri = 'wss://' + this.callConfig.ipccServer +
-    //     '/call-center/websocketServer?' +
-    //     '&loginToken=' + this.callConfig.loginToken;
-    // }else{
+    if(_cc.callConfig.enableWss){
+      wsuri = 'wss://' + this.callConfig.ipccServer +
+        '/call-center/websocketServer?' +
+        '&loginToken=' + this.callConfig.loginToken;
+    }else{
       wsuri = 'ws://129.28.164.235:1081/call-center/websocketServer?' +
         '&loginToken=' + this.callConfig.loginToken;
-    // }
+    }
     console.log("ipccServer url: " + wsuri);
     var ipccServerIpAddr = this.callConfig.ipccServer.split(":");
     if(this.callConfig.enableWss &&  this.checkIP(ipccServerIpAddr)){

+ 7 - 9
src/views/aiSipCall/aiSipCallManualOutbound.vue

@@ -784,11 +784,11 @@ export default {
 
       this.phoneBar.on(EventList.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 事件中获取
       });
 
@@ -841,13 +841,12 @@ export default {
         // 隐藏转接/咨询区域和会议区域(与 source 一致)
         this.showTransferArea = false;
         this.showConferenceArea = false;
-        // 客户信息表单已经在 OUTBOUND_START 时显示,这里不需要重复显示
+        // 客户信息表单保持显示状态,不自动隐藏
         // 获取当前通话的 uuid
         if (msg && msg.object && msg.object.uuid) {
           this.currentCallUuid = msg.object.uuid;
         }
         this.updatePhoneBar(msg, EventList.CALLER_HANGUP);
-        // 不需要再次加载,已经在 OUTBOUND_START 时加载过了
 
         // 通话结束后调用后端接口
         this.handleCallEnd();
@@ -868,13 +867,12 @@ export default {
         // 隐藏转接/咨询区域和会议区域(与 source 一致)
         this.showTransferArea = false;
         this.showConferenceArea = false;
-        // 客户信息表单已经在 OUTBOUND_START 时显示,这里不需要重复显示
+        // 客户信息表单保持显示状态,不自动隐藏
         // 获取当前通话的 uuid
         if (msg && msg.object && msg.object.uuid) {
           this.currentCallUuid = msg.object.uuid;
         }
         this.updatePhoneBar(msg, EventList.CALLEE_HANGUP);
-        // 不需要再次加载,已经在 OUTBOUND_START 时加载过了
 
         // 通话结束后调用后端接口
         this.handleCallEnd();