后台-客服跳转

This commit is contained in:
XinWei 2024-10-24 10:50:29 +08:00
parent 314cc090ee
commit 81be16bd6c
2 changed files with 15 additions and 3 deletions

View File

@ -26,7 +26,7 @@
import { KeFuConversationList, KeFuMessageList, MemberBrowsingHistory } from './components' import { KeFuConversationList, KeFuMessageList, MemberBrowsingHistory } from './components'
import { WebSocketMessageTypeConstants } from './components/tools/constants' import { WebSocketMessageTypeConstants } from './components/tools/constants'
import { KeFuConversationRespVO } from '@/api/mall/promotion/kefu/conversation' import { KeFuConversationRespVO } from '@/api/mall/promotion/kefu/conversation'
import { getRefreshToken } from '@/utils/auth' import { getRefreshToken, getAccessToken } from '@/utils/auth'
import { useWebSocket } from '@vueuse/core' import { useWebSocket } from '@vueuse/core'
defineOptions({ name: 'KeFu' }) defineOptions({ name: 'KeFu' })

View File

@ -166,7 +166,7 @@
:formatter="dateFormatter" :formatter="dateFormatter"
width="180px" width="180px"
/> />
<el-table-column label="操作" align="center"> <el-table-column fixed="right" label="操作" align="center" min-width="200">
<template #default="scope"> <template #default="scope">
<el-button <el-button
link link
@ -184,6 +184,14 @@
> >
删除 删除
</el-button> </el-button>
<el-button
v-if="scope.row.status == 1"
link
type="success"
@click="handleEnterConsole(scope.row.id)"
>
进入工作台
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -275,7 +283,11 @@ const handleDelete = async (id: number) => {
await getList() await getList()
} catch {} } catch {}
} }
/** 客服进入工作台 */
const handleEnterConsole = async (id: number) => {
window.open(`${window.location.origin}/kefu/kefu`, '_blank');
}
/** 导出按钮操作 */ /** 导出按钮操作 */
const handleExport = async () => { const handleExport = async () => {
try { try {