71 lines
3.0 KiB
TypeScript
71 lines
3.0 KiB
TypeScript
import http from "@/api";
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
|
|
//获取人员所属班组
|
|
export const getTeamDataList = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/teamInfo/getTeamInfoList`, params);
|
|
};
|
|
// 获取人员实时动态(更多数据)
|
|
export const getRealTimeMoreDataApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerAttendance/list`, params);
|
|
};
|
|
//获取所属部门列表
|
|
export const getDepartDataList = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/departmentInfo/getDepartmentInfoList`, params);
|
|
};
|
|
// 获取人员实时动态
|
|
export const getRealTimeDataApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerAttendance/selectWorkerAttendanceNewestList`, params);
|
|
};
|
|
// 查询人员信息列表
|
|
export const getMemberInfoList = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/selectWorkerInfoList`, params);
|
|
};
|
|
//查询所属企业
|
|
export const getCompanyDataList = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/enterpriseInfo/list`, params);
|
|
};
|
|
//查询人员人数
|
|
export const getPersonTypeAndEduStatisticsApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/selectPersonTypeAndEduStatistics`, params, { headers: { noLoading: true } });
|
|
};
|
|
//查询人员统计
|
|
export const getCountEntryAndExitNum = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/countEntryAndExitNum`, params, { headers: { noLoading: true } });
|
|
};
|
|
//查询今日作业人员趋势
|
|
export const getQueryTodayAttendanceTrendApi = (params: {}) => {
|
|
// return http.get(BASEURL + `/xmgl/workerAttendance/queryYearAttendanceTrend`, params, { headers: { noLoading: true } });
|
|
return http.get(BASEURL + `/xmgl/workerAttendance/queryTodayAttendanceTrend`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
//查询出勤分析
|
|
export const getQueryTodayOfTheLastWeekApi = (params: {}) => {
|
|
return http.get(BASEURL + `/xmgl/workerAttendance/queryAttendanceTrendOfTheLastWeek`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
//查询工种分析
|
|
export const selectProjectWorkerTypeTotalListApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/selectProjectWorkerTypeTotalList`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
//查询劳务班组出勤分析
|
|
export const getEnterpriseInfoApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/enterpriseInfo/page`, params);
|
|
};
|
|
|
|
//查询劳务班组人员分布
|
|
export const getWorkerInfoApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/selectWorkerTeamStatistics`, params);
|
|
};
|
|
|
|
// 右中 获取部门管理人员出勤分析
|
|
export const getworkerAttendanceTrendApi = (params: {}) => {
|
|
return http.get(BASEURL + `/xmgl/workerAttendance/queryAttendanceOfEachCompany`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
// 查询右下 获取按分包单位分析
|
|
export const getComapnyWorkTotalListApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/selectProjectComapnyWorkTotalList`, params, { headers: { noLoading: true } });
|
|
};
|