|
@@ -182,7 +182,6 @@ const m_nCallTime = ref(0); // 实时通话时长
|
|
|
* */
|
|
|
const e_websocketOpen = () => {
|
|
|
console.log('开启链接');
|
|
|
- console.log(wsRef.value);
|
|
|
const sendObj = {
|
|
|
Action: 'ReqAgentLogin',
|
|
|
Param: {
|
|
@@ -615,7 +614,7 @@ const retSignIn = (data: any) => {
|
|
|
// 分机错误
|
|
|
} else if (data.Param.Result === '7') {
|
|
|
// 已经处于登录状态
|
|
|
- onSignOut();
|
|
|
+ signOutFn();
|
|
|
ElMessage.error('已经处于签入状态,请重试');
|
|
|
}
|
|
|
};
|
|
@@ -624,6 +623,16 @@ const retSignIn = (data: any) => {
|
|
|
* ReqAgentLogout - 签出方法名称
|
|
|
* Extension - 分机号码
|
|
|
*/
|
|
|
+const signOutFn = () => {
|
|
|
+ const objMsg = {
|
|
|
+ Action: 'ReqAgentLogout',
|
|
|
+ Param: {
|
|
|
+ Extension: m_strUserNo.value,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ // 发送请求
|
|
|
+ e_TelSendMsg(objMsg);
|
|
|
+};
|
|
|
const onSignOut = () => {
|
|
|
ElMessageBox.confirm(`确定要签出,是否继续?`, '提示', {
|
|
|
confirmButtonText: '确认',
|