fix(staff): format time columns in detail modal
YkStaffDetailModal Col gains optional formatter; baseCustomerCols time cols render via formatTime instead of raw epoch. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -199,11 +199,14 @@ const detailFetcher = ref<(p: number, s: number) => Promise<any>>(
|
||||
)
|
||||
const detailCols = ref<any[]>([])
|
||||
|
||||
const fmtTime = (_r: any, _c: any, v: any): string =>
|
||||
typeof v === 'number' && v > 0 ? formatTime(v) : v ? String(v) : '--'
|
||||
|
||||
const baseCustomerCols = [
|
||||
{ prop: 'friend_nickname', label: '客户', minWidth: 140 },
|
||||
{ prop: 'phone', label: '客户号码', width: 130 },
|
||||
{ prop: 'last_chat_time', label: '最后沟通', width: 150 },
|
||||
{ prop: 'add_time', label: '添加时间', width: 150 },
|
||||
{ prop: 'last_chat_time', label: '最后沟通', width: 150, formatter: fmtTime },
|
||||
{ prop: 'add_time', label: '添加时间', width: 150, formatter: fmtTime },
|
||||
]
|
||||
|
||||
function openAddedModal(row: Account) {
|
||||
|
||||
Reference in New Issue
Block a user