feat(wms/attendance): 优化考勤同步功能,新增月份选择和超时配置
1. 重构syncRecords接口,支持传入开始和结束时间参数并新增60s超时配置 2. 升级考勤同步页面:新增同步弹窗、月份选择器,替换原有基于最后同步时间的同步逻辑 3. 优化搜索表单和详情表单的标签与占位符,调整表单宽度提升可读性 4. 移除无用的最后同步时间查询逻辑
This commit is contained in:
@@ -45,12 +45,14 @@ export function delRecords(id) {
|
||||
}
|
||||
|
||||
// 同步考勤记录
|
||||
export function syncRecords(starttime) {
|
||||
export function syncRecords({ starttime, endtime }) {
|
||||
return attendanceRequest({
|
||||
url: '/sync_attendance',
|
||||
method: 'post',
|
||||
timeout: 60000,
|
||||
data: {
|
||||
starttime
|
||||
starttime,
|
||||
endtime
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user