fix(ui): 员工详情页接入卡片化美化(选择器扩展到独立页)+WA客户tab每页10条(微信保持5)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-24 10:17:18 +08:00
parent 0202dbc336
commit 3699ec6d3b
2 changed files with 17 additions and 10 deletions
+4 -4
View File
@@ -35,8 +35,8 @@ interface TabState {
errorMsg: string | null
loaded: boolean
}
function freshTabState(): TabState {
return { items: [], total: 0, page: 1, pageSize: 5, loading: false, errorMsg: null, loaded: false }
function freshTabState(pageSize = 5): TabState {
return { items: [], total: 0, page: 1, pageSize, loading: false, errorMsg: null, loaded: false }
}
/** 云客口径客户合计(分渠道,Σ员工好友数声明值,含云客索引重复;页脚对齐云客)。 */
@@ -68,8 +68,8 @@ const activeTab = ref<TabKey>(
: 'wechat',
)
const tabState = reactive<Record<TabKey, TabState>>({
wechat: freshTabState(),
whatsapp: freshTabState(),
wechat: freshTabState(5), // 微信 5 条(用户偏好)
whatsapp: freshTabState(10), // WA 10 条(2026-08-24 用户指定)
})
// 全字段抽屉(两 tab 共享)