diff --git a/src/pages/layout/components/LayoutHeader.vue b/src/pages/layout/components/LayoutHeader.vue index 888f5ce..81208d5 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') { @@ -484,7 +471,8 @@ export default { box-sizing: border-box; // background: url('~@/assets/image/header-bg-1920.png') no-repeat ; background-size: cover; - background-color: #C66A5B; + // background-color: #C66A5B; + background-color: #5d7eeac7; .el-badge__content { height: $height20; @@ -508,7 +496,7 @@ export default { background-color: transparent; } - .el-menu--horizontal > .el-menu-item { + .el-menu--horizontal > .el-menu-item,.el-menu--horizontal > .el-menu-item i { color: #FFFFFFB2; } @@ -516,7 +504,7 @@ export default { color: #FFFFFFB2; } - .el-menu--horizontal > .el-menu-item:hover { + .el-menu--horizontal > .el-menu-item:hover, .el-menu--horizontal > .el-menu-item:hover i { color: #C66A5B; background-color: transparent; color: #fff; @@ -532,7 +520,7 @@ export default { color: #FFFFFFB2; } - .el-menu--horizontal > .el-menu-item.is-active { + .el-menu--horizontal > .el-menu-item.is-active, .el-menu--horizontal > .el-menu-item.is-active i { border-bottom: 2px solid #fff; background-color: transparent; color: #fff; diff --git a/src/pages/layout/components/MenuTree.vue b/src/pages/layout/components/MenuTree.vue index fc4ce5c..4933a3c 100644 --- a/src/pages/layout/components/MenuTree.vue +++ b/src/pages/layout/components/MenuTree.vue @@ -1,8 +1,8 @@