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:
@@ -222,6 +222,7 @@ export function yesNoLabel(v: unknown): string {
|
|||||||
*/
|
*/
|
||||||
const FROM_TYPE_LABELS: Record<string, string> = {
|
const FROM_TYPE_LABELS: Record<string, string> = {
|
||||||
'1000014': '工作手机',
|
'1000014': '工作手机',
|
||||||
|
'0': '工作手机', // 群列表的 fromType=0 也是工作手机(实测 2026-08-24)
|
||||||
}
|
}
|
||||||
export function fromTypeLabel(v: unknown): string {
|
export function fromTypeLabel(v: unknown): string {
|
||||||
if (v === null || v === undefined || v === '') return '--'
|
if (v === null || v === undefined || v === '') return '--'
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ onMounted(() => {
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="群主信息" min-width="180">
|
<el-table-column label="群主信息" min-width="180">
|
||||||
<template #default="{ row }">
|
<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>
|
<div class="yk-staffinfo__muted">{{ cellText(row, 'wxId') }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -327,7 +327,7 @@ onMounted(() => {
|
|||||||
<template #default="{ row }">{{ cellNum(row, 'memberCount') }}</template>
|
<template #default="{ row }">{{ cellNum(row, 'memberCount') }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="群成员好友数量" width="130" align="right">
|
<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>
|
||||||
<el-table-column label="消息数量" width="100" align="right">
|
<el-table-column label="消息数量" width="100" align="right">
|
||||||
<template #default="{ row }">{{ cellNum(row, 'messageCount') }}</template>
|
<template #default="{ row }">{{ cellNum(row, 'messageCount') }}</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user