fix(groups): 群列表3处字段修正对齐云客(群主ownerName+好友数friendCount+fromType=0→工作手机)

- 群主信息: userName→ownerName(群数据里群主昵称的正确字段)
- 群成员好友数量: contactCount(不存在)→friendCount(实测有值500)
- fromType=0 映射为「工作手机」(群列表的编码与客户的1000014不同)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-24 11:40:20 +08:00
parent 804addf725
commit 242243e880
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -222,6 +222,7 @@ export function yesNoLabel(v: unknown): string {
*/
const FROM_TYPE_LABELS: Record<string, string> = {
'1000014': '工作手机',
'0': '工作手机', // 群列表的 fromType=0 也是工作手机(实测 2026-08-24)
}
export function fromTypeLabel(v: unknown): string {
if (v === null || v === undefined || v === '') return '--'
+2 -2
View File
@@ -319,7 +319,7 @@ onMounted(() => {
</el-table-column>
<el-table-column label="群主信息" min-width="180">
<template #default="{ row }">
<div class="yk-staffinfo__nick" :title="cellText(row, 'userName')">{{ cellText(row, 'userName') }}</div>
<div class="yk-staffinfo__nick" :title="cellText(row, 'ownerName')">{{ cellText(row, 'ownerName') }}</div>
<div class="yk-staffinfo__muted">{{ cellText(row, 'wxId') }}</div>
</template>
</el-table-column>
@@ -327,7 +327,7 @@ onMounted(() => {
<template #default="{ row }">{{ cellNum(row, 'memberCount') }}</template>
</el-table-column>
<el-table-column label="群成员好友数量" width="130" align="right">
<template #default="{ row }">{{ cellNum(row, 'contactCount') }}</template>
<template #default="{ row }">{{ cellNum(row, 'friendCount') }}</template>
</el-table-column>
<el-table-column label="消息数量" width="100" align="right">
<template #default="{ row }">{{ cellNum(row, 'messageCount') }}</template>