修改坐席状态
This commit is contained in:
parent
3a26c71cf3
commit
a1f1cd3ec0
@ -34,9 +34,9 @@
|
||||
<el-dropdown-item command="free">
|
||||
空闲
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="busy">
|
||||
<!-- <el-dropdown-item command="busy">
|
||||
忙碌
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-item> -->
|
||||
<el-dropdown-item command="arrange">
|
||||
话后整理
|
||||
</el-dropdown-item>
|
||||
@ -49,23 +49,6 @@
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
<!-- <div class="flex-row justify-content-between align-items-center border-t-solid-lighter-1 p-16 cursor-pointer">
|
||||
<div class="f16 color-text-regular">坐席状态</div>
|
||||
<div class="f16 color-text-secondary">
|
||||
<el-dropdown @click="handleClick">
|
||||
<span class="el-dropdown-link">
|
||||
{{agentStatusName}}<i class="el-icon-arrow-down el-icon--right"></i>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="free">空闲</el-dropdown-item>
|
||||
<el-dropdown-item command="busy">忙碌</el-dropdown-item>
|
||||
<el-dropdown-item command="arrange">话后整理</el-dropdown-item>
|
||||
<el-dropdown-item command="notReady">示忙</el-dropdown-item>
|
||||
<el-dropdown-item command="rest">小休</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
|
||||
@ -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') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user