|
@@ -86,7 +86,7 @@
|
|
|
|
|
|
<!-- 可用挂断 -->
|
|
|
<template v-if="telStatusInfo.isDutyOn && activeArr.includes('hangup')">
|
|
|
- <div class="item active" @click="onControlClick('hangup')" title="挂断">
|
|
|
+ <div class="item active" :class="state.active.includes('hangup') ? 'active' : ''" @click="onControlClick('hangup')" title="挂断">
|
|
|
<SvgIcon name="iconfont icon-hangup" class="icon mr3" size="16px" />
|
|
|
<span>挂断</span>
|
|
|
</div>
|
|
@@ -723,6 +723,7 @@ const signalRStart = async () => {
|
|
|
RestApplyPassFn(data);
|
|
|
});
|
|
|
};
|
|
|
+// 检查用户状态
|
|
|
// 设置当前可用的按钮
|
|
|
const activeArr = computed(() => {
|
|
|
const switchCases: any = {
|
|
@@ -734,7 +735,7 @@ const activeArr = computed(() => {
|
|
|
onCall: ['hangup', 'hold', 'transfer', 'conference', 'mute'], // 单个通话中
|
|
|
onMute: ['hangup', 'transfer', 'mute'], // 静音中
|
|
|
onHold: ['hangup', 'hold', 'transfer'], // 保持中
|
|
|
- onTalkingDeal: ['TalkingDeal', 'rest'], // 话后整理中
|
|
|
+ onTalkingDeal: ['rest','TalkingDeal'], // 话后整理中
|
|
|
onConference: ['hangup'], // 三方会议中 只能挂断
|
|
|
onThreeWay: ['hangup', 'conference'], // 三方会议呼出中 只能挂断和踢人
|
|
|
};
|
|
@@ -1041,8 +1042,8 @@ const onMessage = async (event: any) => {
|
|
|
break;
|
|
|
}
|
|
|
if (data.state == 'busy') {
|
|
|
- useTelStatusStore.setDutyState(true); // 确保一进来消息就是通话中 设置签入状态
|
|
|
- callCenterIsSignIn.value = true; // 签入状态
|
|
|
+ useTelStatusStore.setDutyState(true); // 确保一进来消息就是通话中 设置签入状态
|
|
|
+ callCenterIsSignIn.value = true; // 签入状态
|
|
|
call_direction.value = data.call_direction; // 保存呼叫方向
|
|
|
callCenterIsOnThePhone.value = true; // 当前正在通话状态
|
|
|
if (['held', 'unheld'].includes(data.private_data)) {
|
|
@@ -1186,7 +1187,7 @@ const onMessage = async (event: any) => {
|
|
|
callId: data.other_accept,
|
|
|
transfer: data.gateway, // 转接来源(如12345,12333)
|
|
|
identityType: data.app_data.dtmf_his, // 按键接收(1:市民 2:企业 3:智能应答)
|
|
|
- timeStamp: new Date().getTime(),
|
|
|
+ timeStamp: new Date().getTime(),
|
|
|
},
|
|
|
});
|
|
|
} else if (data.private_data == 'answered') {
|