jhbigscreen/src/api/attendance/index.js

30 lines
686 B
JavaScript
Raw Normal View History

2023-08-16 20:42:07 +08:00
import request from '@/utils/request'
2023-08-19 13:22:07 +08:00
import { Date } from 'core-js'
2023-08-16 20:42:07 +08:00
const getDeptWorksList=(deptId,projectId)=> {
return request({
2023-08-18 00:53:46 +08:00
url: `bgscreen/attendance/getDeptWorksList?deptId=${deptId||0}&projectId=${projectId||0}`,
2023-08-16 20:42:07 +08:00
method: 'get'
})
}
2023-08-19 13:22:07 +08:00
const getWorkAttendanceList=(deptId,projectId)=> {
2023-08-16 20:42:07 +08:00
return request({
2023-08-19 13:22:07 +08:00
url: `bgscreen/attendance/getWorkAttendanceList?deptId=${deptId||0}&projectId=${projectId||0}`,
2023-08-16 20:42:07 +08:00
method: 'get'
})
}
2023-09-27 00:36:41 +08:00
const groupByComany=(data)=> {
return request({
url: `bgscreen/attendance/groupByComany`,
data:data,
method: 'post'
})
}
2023-08-16 20:42:07 +08:00
export default{
getDeptWorksList,
2023-09-27 00:36:41 +08:00
getWorkAttendanceList,
groupByComany
2023-08-16 20:42:07 +08:00
}