feat(staff): 弹框客户微信/员工微信列改富单元格(头像+昵称+ID+真实姓名,对齐云客)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-25 10:24:07 +08:00
parent 0d19289fba
commit b6eea3070a
5 changed files with 49 additions and 12 deletions
+12 -5
View File
@@ -387,7 +387,8 @@ function commModalColsFor(metric: ChatMetric, row: Account): any[] {
{
prop: 'customer_wx',
label: '客户微信',
minWidth: 180,
minWidth: 200,
type: 'person',
onClick: (c: any) => openCustomerChat(row, c),
},
]
@@ -398,8 +399,7 @@ function commModalColsFor(metric: ChatMetric, row: Account): any[] {
)
}
cols.push(
{ prop: 'staff_info', label: '员工信息', minWidth: 140 },
{ prop: 'staff_wx', label: '员工微信', minWidth: 160 },
{ prop: 'staff_wx', label: '员工微信', minWidth: 200, type: 'person' },
)
return cols
}
@@ -447,9 +447,16 @@ function openWechatCommModal(row: Account, metric: ChatMetric): void {
const items = filtered.slice(startIdx, startIdx + page_size).map((c, i) => ({
...c,
_serial: startIdx + i + 1,
customer_wx: joinFields(c.friend_name, c.talker_id),
staff_info: staffInfo,
customer_wx: c.friend_name,
customer_wx_name: c.friend_name,
customer_wx_sub: c.talker_id,
customer_wx_real: c.real_name || '',
customer_wx_avatar: c.head_image_url || '',
staff_wx: staffWx,
staff_wx_name: cellText(row, 'nickName'),
staff_wx_sub: row.account_id,
staff_wx_real: cellText(row, 'userName') || '',
staff_wx_avatar: cellText(row, 'headImg') || (row.raw_json as any)?.headImg || '',
}))
// 汇总说明(对齐云客)
const metricTitle = METRIC_TITLES[metric]