feat(staffchat): CallList/SearchView 微信行切新员工聊天窗口(入口改造收尾)
与 StaffList/CustomerList 同口径:微信行→staff-chat 新窗(单聊=single tab, 群语音/@chatroom 消息=group tab),WA 行保留旧 ChatTimeline(ChatTimeline 保留给 WA)。通话行跳转带「通话当天」整天下窗——语音通话本身是消息流里的 voice_call 行,当天窗必含该通通话,等价实现旧页 ?start= 滚动定位(新窗 rangeFromQuery 需 start+end 成对)。SearchView 客户抽屉同 CustomerList。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -207,6 +207,18 @@ function openMessage(m: Message): void {
|
||||
ElMessage.warning('该消息缺少归属账号,无法定位会话')
|
||||
return
|
||||
}
|
||||
// 微信 → 新员工聊天窗口(群消息=group tab 按 room_id);WA 保留旧 ChatTimeline。
|
||||
if (m.channel === 'wechat') {
|
||||
router.push({
|
||||
name: 'staff-chat',
|
||||
params: {
|
||||
ownerId: m.owner_account_id,
|
||||
tab: m.room_id ? 'group' : 'single',
|
||||
talkerId: (m.room_id ?? m.talker_id) as string,
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
router.push({
|
||||
name: 'chat',
|
||||
params: {
|
||||
@@ -233,6 +245,14 @@ function goChatFromDrawer(): void {
|
||||
ElMessage.warning('该客户缺少归属账号,无法查看聊天记录')
|
||||
return
|
||||
}
|
||||
// 微信 → 新员工聊天窗口;WA 保留旧 ChatTimeline(与 CustomerList.viewChat 一致)。
|
||||
if (row.channel === 'wechat') {
|
||||
router.push({
|
||||
name: 'staff-chat',
|
||||
params: { ownerId: row.owner_account_id, tab: 'single', talkerId: row.friend_id },
|
||||
})
|
||||
return
|
||||
}
|
||||
router.push({
|
||||
name: 'chat',
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user