From 0371484dadcf34942a28461cd94ac34df97a5fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 25 Aug 2026 18:56:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(staffchat):=20=E9=80=9A=E8=AE=AF=E5=BD=95(?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=A1=A8+=E7=BE=A4=E8=A1=A8=E5=88=97?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E4=BA=91=E5=AE=A2+=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E5=AF=BC=E5=87=BA+=E5=88=86=E9=A1=B5)+?= =?UTF-8?q?=E6=9C=8B=E5=8F=8B=E5=9C=88=E7=BF=BB=E9=A1=B5=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=86=85=E8=81=94=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- yunkes/src/api/index.ts | 6 + yunkes/src/api/types.ts | 9 + .../src/components/staffchat/ContactsPane.vue | 543 +++++++++++++++++- .../src/components/staffchat/MomentsPane.vue | 21 +- 4 files changed, 575 insertions(+), 4 deletions(-) diff --git a/yunkes/src/api/index.ts b/yunkes/src/api/index.ts index 8cbb2de..5f7d087 100644 --- a/yunkes/src/api/index.ts +++ b/yunkes/src/api/index.ts @@ -49,6 +49,8 @@ export interface CustomerQuery { department_id?: string add_time_since?: number last_chat_since?: number + /** 文本搜索: 昵称/微信号/备注名/手机号子串匹配(通讯录搜索框)。 */ + q?: string } export interface DeclaredTotals { @@ -73,6 +75,7 @@ export function getCustomers(query: CustomerQuery = {}): Promise> department_id: query.department_id, add_time_since: query.add_time_since, last_chat_since: query.last_chat_since, + q: query.q, }), ) } @@ -162,6 +165,8 @@ export interface GroupQuery { user_id?: string /** 精确单行直查(群聊页群名解析)。 */ room_id?: string + /** 群名称模糊搜索(通讯录群 tab 搜索框)。 */ + q?: string page?: number page_size?: number } @@ -174,6 +179,7 @@ export function getGroups(query: GroupQuery = {}): Promise> { owner_account_id: query.owner_account_id, user_id: query.user_id, room_id: query.room_id, + q: query.q, page: query.page ?? 1, page_size: query.page_size ?? 20, }), diff --git a/yunkes/src/api/types.ts b/yunkes/src/api/types.ts index e1d7c75..830e047 100644 --- a/yunkes/src/api/types.ts +++ b/yunkes/src/api/types.ts @@ -98,6 +98,15 @@ export interface Group { message_count?: number | null /** ms-epoch of most recent message */ last_chat_time?: number | null + /** 群主/建群补充列(2026-08-25 对齐云客微信群 tab;scraper/回填脚本提取,可空)。 */ + owner_name?: string | null + owner_wxid?: string | null + owner_alias?: string | null + owner_avatar?: string | null + /** 群成员中员工好友数 */ + friend_count?: number | null + /** 建群时间 ms-epoch */ + create_time?: number | null /** * Verbatim upstream chatroom record (camelCase keys: chatRoomId/chatRoomName, * memberCount/memberIds, headImageUrl, wechatId/wechatNickName, userName/ diff --git a/yunkes/src/components/staffchat/ContactsPane.vue b/yunkes/src/components/staffchat/ContactsPane.vue index 8f24f8c..35dbd5d 100644 --- a/yunkes/src/components/staffchat/ContactsPane.vue +++ b/yunkes/src/components/staffchat/ContactsPane.vue @@ -1,8 +1,545 @@ - + + + diff --git a/yunkes/src/components/staffchat/MomentsPane.vue b/yunkes/src/components/staffchat/MomentsPane.vue index 7465e59..5c18974 100644 --- a/yunkes/src/components/staffchat/MomentsPane.vue +++ b/yunkes/src/components/staffchat/MomentsPane.vue @@ -112,7 +112,9 @@ const headerInitial = computed( - + +
加载中…
已到底
+ +
加载失败,点击重试
@@ -307,4 +315,15 @@ const headerInitial = computed( color: #8a94a4; text-align: center; } +/* 翻页失败内联重试行 */ +.sc-moments__retry { + padding: 6px 0 2px; + font-size: 11.5px; + color: #f56c6c; + text-align: center; + cursor: pointer; +} +.sc-moments__retry:hover { + text-decoration: underline; +}