feat(推送管理)配置中心-推送通知-推送记录优化
deploy-hxtesting / build-and-deploy (push) Successful in 1m21s

1.增加按“时间”、“标题”、“企微状态”查询
2.增加数据统计在列表顶部
3.增加分页功能
This commit is contained in:
runny committed 2026-11-28 13:05:13 +08:00
1 parent 0c471efb9f
commit 9d4092bc7f
14 files changed
+447 -108

No files matched your search

+33 -3
View File
@@ -665,6 +665,9 @@ export interface TrainingSignRecord {
member_name?: string
employee_no?: string
dept_name?: string
// 是否该场次「参加人员」名单内(后端实时联查 tr_enrollments;2026-11-28
// 规则调整:全员可签到,明细按此标注要求/非要求培训人员)
in_roster?: boolean
}
export interface SignSummary {
@@ -1495,9 +1498,36 @@ export interface TrainingPushLog {
created_at: string
}
// listTrainingPushLogs 推送逐人明细(scenes 逗号分隔可选;ref_type 可选)。
export const listTrainingPushLogs = (params?: { scenes?: string; ref_type?: string; limit?: number }) =>
get<{ success: boolean; data: TrainingPushLog[] }>(`${base}/notifications/push-logs`, { params })
// TrainingPushLogStats 推送记录统计(当前过滤条件命中的全量口径,与分页无关)。
export interface TrainingPushLogStats {
total: number
sent: number
dead: number
skipped: number
pending: number // pending+sending 排队与投递中
in_site: number // push_status 空 = 仅站内
}
// TrainingPushLogPage 推送记录分页结果(items=当前页,total/stats=全量口径)。
export interface TrainingPushLogPage {
items: TrainingPushLog[]
total: number
stats: TrainingPushLogStats
}
// listTrainingPushLogs 推送逐人明细:时间范围/标题模糊/企微状态/场景过滤 +
// 服务端分页;push_status 传 pending 表示排队与投递中,in_site 表示仅站内。
export const listTrainingPushLogs = (params?: {
scenes?: string
ref_type?: string
title?: string
push_status?: string
start_time?: string
end_time?: string
page?: number
page_size?: number
}) =>
get<{ success: boolean; data: TrainingPushLogPage }>(`${base}/notifications/push-logs`, { params })
// notifySessionStudents 手动"立即推送学员"开课通知(课件门控+幂等)。
export const notifySessionStudents = (sessionId: string) =>