55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
import request from '@/utils/request'
|
|
import { Date } from 'core-js'
|
|
|
|
const getDeptWorksList=(deptId,projectId)=> {
|
|
return request({
|
|
url: `bgscreen/attendance/getDeptWorksList?deptId=${deptId||0}&projectId=${projectId||0}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
const getWorkAttendanceList=(deptId,projectId)=> {
|
|
return request({
|
|
url: `bgscreen/attendance/getWorkAttendanceList?deptId=${deptId||0}&projectId=${projectId||0}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
|
|
const groupByComany=(data)=> {
|
|
return request({
|
|
url: `bgscreen/attendance/groupByComany`,
|
|
data:data,
|
|
method: 'post'
|
|
})
|
|
}
|
|
const groupAllByComany=(data)=> {
|
|
return request({
|
|
url: `bgscreen/attendance/groupAllByComany`,
|
|
data:data,
|
|
method: 'post'
|
|
})
|
|
}
|
|
const todayAttendance=(data)=>{
|
|
return request({
|
|
url: `bgscreen/attendance/todayAttendance`,
|
|
data:data,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
const selectList=(data,pageNum,pageSize)=>{
|
|
return request({
|
|
url: `bgscreen/attendance/selectList?pageNum=${pageNum}&pageSize=${pageSize}`,
|
|
data:data,
|
|
method: 'post'
|
|
})
|
|
}
|
|
export default{
|
|
getDeptWorksList,
|
|
getWorkAttendanceList,
|
|
groupByComany,
|
|
todayAttendance,
|
|
selectList,
|
|
groupAllByComany
|
|
} |