修改坐席状态

This commit is contained in:
张运江 2025-02-24 16:38:29 +08:00
parent 3a26c71cf3
commit a1f1cd3ec0

View File

@ -34,9 +34,9 @@
<el-dropdown-item command="free"> <el-dropdown-item command="free">
空闲 空闲
</el-dropdown-item> </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 command="arrange">
话后整理 话后整理
</el-dropdown-item> </el-dropdown-item>
@ -49,23 +49,6 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </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> </div>
@ -331,11 +314,14 @@ export default {
// console.log('',this.userInfo) // console.log('',this.userInfo)
// console.log(this.userInfo.showName) // console.log(this.userInfo.showName)
console.log('判断是否绑定坐席agent',this.agent) console.log('判断是否绑定坐席agent',this.agent)
// if (this.agent) { if (this.agent) {
// setTimeout(() => { setTimeout(() => {
// this.getStatus() window.tccc.Agent.online().then(res => {
// }, 2000) console.log('坐席上线', res)
// } // this.getStatus()
})
}, 2000)
}
}, },
methods: { methods: {
// //
@ -413,11 +399,12 @@ export default {
}, },
handleCommand(command) { handleCommand(command) {
console.log(command) console.log(command)
if (this.agentStatus === command) {
return
}
this.agentStatus = command this.agentStatus = command
if (command === 'free') { if (command === 'free') {
this.agentStatusName = '空闲' this.agentStatusName = '空闲'
} else if (command === 'busy') {
this.agentStatusName = '忙碌'
} else if (command === 'arrange') { } else if (command === 'arrange') {
this.agentStatusName = '话后整理' this.agentStatusName = '话后整理'
} else if (command === 'notReady') { } else if (command === 'notReady') {