fix(staff): \u5f39\u6846\u8865\u56de\u5458\u5de5\u4fe1\u606f\u5217(\u8bef\u5220)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -399,6 +399,7 @@ function commModalColsFor(metric: ChatMetric, row: Account): any[] {
|
||||
)
|
||||
}
|
||||
cols.push(
|
||||
{ prop: 'staff_info', label: '员工信息', minWidth: 140 },
|
||||
{ prop: 'staff_wx', label: '员工微信', minWidth: 200, type: 'person' },
|
||||
)
|
||||
return cols
|
||||
@@ -443,6 +444,7 @@ function openWechatCommModal(row: Account, metric: ChatMetric): void {
|
||||
const filtered = stats.customers.filter((c) => metricFilter(c, metric))
|
||||
const startIdx = (page - 1) * page_size
|
||||
const staffWx = joinFields(cellText(row, 'nickName'), row.account_id)
|
||||
const staffInfo = joinFields(cellText(row, 'userName'), cellText(row, 'phone'))
|
||||
const items = filtered.slice(startIdx, startIdx + page_size).map((c, i) => ({
|
||||
...c,
|
||||
_serial: startIdx + i + 1,
|
||||
@@ -451,6 +453,7 @@ function openWechatCommModal(row: Account, metric: ChatMetric): void {
|
||||
customer_wx_sub: c.talker_id,
|
||||
customer_wx_real: c.real_name || '',
|
||||
customer_wx_avatar: c.head_image_url || '',
|
||||
staff_info: staffInfo,
|
||||
staff_wx: staffWx,
|
||||
staff_wx_name: cellText(row, 'nickName'),
|
||||
staff_wx_sub: row.account_id,
|
||||
|
||||
Reference in New Issue
Block a user