From a1f1cd3ec085f73ad578bc9a7e0ec93b6fc68036 Mon Sep 17 00:00:00 2001 From: tangchengming <445785772@qq.com> Date: Mon, 24 Feb 2025 16:38:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9D=90=E5=B8=AD=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/layout/components/LayoutHeader.vue | 39 +++++++------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/src/pages/layout/components/LayoutHeader.vue b/src/pages/layout/components/LayoutHeader.vue index 830e3f5..16fe14d 100644 --- a/src/pages/layout/components/LayoutHeader.vue +++ b/src/pages/layout/components/LayoutHeader.vue @@ -34,9 +34,9 @@ 空闲 - + 话后整理 @@ -49,23 +49,6 @@ - @@ -331,11 +314,14 @@ export default { // console.log('获取当前登录人的信息',this.userInfo) // console.log(this.userInfo.showName) console.log('判断是否绑定坐席agent',this.agent) - // if (this.agent) { - // setTimeout(() => { - // this.getStatus() - // }, 2000) - // } + if (this.agent) { + setTimeout(() => { + window.tccc.Agent.online().then(res => { + console.log('坐席上线', res) + // this.getStatus() + }) + }, 2000) + } }, methods: { // 个人信息 @@ -413,11 +399,12 @@ export default { }, handleCommand(command) { console.log(command) + if (this.agentStatus === command) { + return + } this.agentStatus = command if (command === 'free') { this.agentStatusName = '空闲' - } else if (command === 'busy') { - this.agentStatusName = '忙碌' } else if (command === 'arrange') { this.agentStatusName = '话后整理' } else if (command === 'notReady') {