|
@@ -776,7 +776,7 @@ const canMeeting = computed((): boolean => {
|
|
|
return telStatusInfo.value.onHoldArr.length === 2 && telStatusInfo.value.onHoldArr[0].isHold != telStatusInfo.value.onHoldArr[1].isHold;
|
|
|
});
|
|
|
// 接听事件处理
|
|
|
-const answerFn = (data: any) => {
|
|
|
+const answerFn = () => {
|
|
|
// 设置电话状态
|
|
|
useTelStatusStore.setPhoneControlState(TelStates.onCall);
|
|
|
|
|
@@ -796,7 +796,7 @@ const answerFn = (data: any) => {
|
|
|
}
|
|
|
};
|
|
|
// 小休审批通过消息
|
|
|
-const RestApplyPassFn = (data: any) => {
|
|
|
+const RestApplyPassFn = () => {
|
|
|
ElNotification({
|
|
|
title: '成功',
|
|
|
message: '小休审批通过,开始小休',
|
|
@@ -841,7 +841,7 @@ const idleFn = ()=>{
|
|
|
}
|
|
|
// 排队事件
|
|
|
const callQueueFv = (data:any)=>{
|
|
|
-
|
|
|
+ console.log(data,'排队事件')
|
|
|
}
|
|
|
// 如果当前是已经签入状态 监听消息事件
|
|
|
if (telStatusInfo.value.isDutyOn) {
|
|
@@ -867,7 +867,7 @@ if (telStatusInfo.value.isDutyOn) {
|
|
|
signalR.SR.on('Answered', (data: any) => {
|
|
|
//接收接听消息
|
|
|
console.log(data, '接听消息');
|
|
|
- answerFn(data);
|
|
|
+ answerFn();
|
|
|
});
|
|
|
|
|
|
signalR.SR.on('Bye', (data: any) => {
|
|
@@ -878,7 +878,7 @@ if (telStatusInfo.value.isDutyOn) {
|
|
|
signalR.SR.on('RestApplyPass', (data: any) => {
|
|
|
// 小休审批通过消息
|
|
|
console.log(data, '小休审批通过消息');
|
|
|
- RestApplyPassFn(data);
|
|
|
+ RestApplyPassFn();
|
|
|
});
|
|
|
signalR.SR.on('Idle', (data: any) => {
|
|
|
// 小休审批通过消息
|
|
@@ -886,8 +886,7 @@ if (telStatusInfo.value.isDutyOn) {
|
|
|
idleFn();
|
|
|
});
|
|
|
signalR.SR.on('CallQueue', (data: any) => {
|
|
|
- // 小休审批通过消息
|
|
|
- console.log(data, '排队事件消息');
|
|
|
+ // 排队事件
|
|
|
callQueueFv(data);
|
|
|
});
|
|
|
}
|
|
@@ -1041,12 +1040,12 @@ const clickOnDuty = () => {
|
|
|
signalR.SR.on('Answered', (data: any) => {
|
|
|
//接收接听消息
|
|
|
console.log(data, '接听消息');
|
|
|
- answerFn(data);
|
|
|
+ answerFn();
|
|
|
});
|
|
|
signalR.SR.on('RestApplyPass', (data: any) => {
|
|
|
// 小休审批通过消息
|
|
|
console.log(data, '小休审批通过消息');
|
|
|
- RestApplyPassFn(data);
|
|
|
+ RestApplyPassFn();
|
|
|
});
|
|
|
signalR.SR.on('Idle', (data: any) => {
|
|
|
// 小休审批通过消息
|
|
@@ -1054,8 +1053,7 @@ const clickOnDuty = () => {
|
|
|
idleFn();
|
|
|
});
|
|
|
signalR.SR.on('CallQueue', (data: any) => {
|
|
|
- // 小休审批通过消息
|
|
|
- console.log(data, '排队事件消息');
|
|
|
+ // 排队事件
|
|
|
callQueueFv(data);
|
|
|
});
|
|
|
ElNotification({
|
|
@@ -1691,7 +1689,7 @@ const onConferenceEnd = () => {
|
|
|
for (let item of telStatusInfo.value.onCallArr) {
|
|
|
hangupApi(item)
|
|
|
.then(() => {})
|
|
|
- .catch((err: any) => {});
|
|
|
+ .catch(() => {});
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {});
|