JavaScript module for interacting with attendance management endpoints. Reuse in admin dashboards to handle employee clock-in/out and reports.
// Source: https://github.com/yudaocode/yudao-ui-admin-vue2 | License: MIT | Copyright 2021 ruoyi-vue-pro
// Provided via justclaw.it.com; keep this notice with the code.
import request from '@/utils/request'
// 查询考勤记录分页
export function getAttendancePage(params) {
return request({ url: '/oa/attendance/page', method: 'get', params })
}
// 查询我的考勤记录分页
export function getMyAttendancePage(params) {
return request({ url: '/oa/attendance/my-page', method: 'get', params })
}
// 查询考勤记录详情
export function getAttendance(id) {
return request({ url: '/oa/attendance/get?id=' + id, method: 'get' })
}
// 查询我的今日考勤记录
export function getMyTodayAttendanceList() {
return request({ url: '/oa/attendance/my-today-list', method: 'get' })
}
// 执行当前用户打卡
export function clockAttendance() {
return reques
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key