zhgdlarge/src/api/modules/agjtCommandApi.ts
2024-06-03 13:45:16 +08:00

107 lines
4.4 KiB
TypeScript

// AI预警接口API
import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
// 人员履职情况分析
// 整改人
export const getMemberJobStatusApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByChangeId`, params, { headers: { noLoading: true } });
};
// 检查人
export const getInspectManStatusApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByInspectMan`, params, { headers: { noLoading: true } });
};
// 按分包单位分析
export const getEnterpriseStatusApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByEnterprise`, params, { headers: { noLoading: true } });
};
// 危大工程弹窗
// 形象进度
export const getProgressRecordApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/dangerousEngineeringProgressRecord/page`, params, { headers: { noLoading: true } });
};
// 安全隐患
export const getInspectionRecordApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/page`, params, { headers: { noLoading: true } });
};
// 验收记录
export const getEngineeringRecordApi = (params: {}) => {
return http.get(BASEURL + `/xmgl/xzDangerousEngineeringAcceptance/page`, params, { headers: { noLoading: true } });
};
// 旁站记录
export const getSideStationApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/dangerousEngineeringSideStation/page`, params, { headers: { noLoading: true } });
};
// 安全教育弹窗
export const getSafeEducationDataApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzWorkerInfoAuditRecord/selectWorkerInfoAuditList`, params, { headers: { noLoading: true } });
};
// 天气弹窗
// 顶部数据
export const getDelayEventTypeApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzTaskProgressContent/statsDelayEventType`, params, { headers: { noLoading: true } });
};
// 底部列表
export const getProgressContentApi = (params: {}) => {
return http.get(BASEURL + `/xmgl/xzTaskProgressContent/page`, params, { headers: { noLoading: true } });
};
// 风险统计弹窗
// 顶部数据
export const getStatisticsNumDataApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, { headers: { noLoading: true } });
};
// 安全隐患
// 顶部数据
export const getQualityStatisticsNumDataApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params, { headers: { noLoading: true } });
};
// 获取分包单位
export const getProjectEnterpriseApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/projectEnterprise/list`, params, { headers: { noLoading: true } });
};
// 获取检查人
export const getSystemUserBySnApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/systemUser/getSystemUserBySn`, params, { headers: { noLoading: true } });
};
// 获取整改人
export const getSystemUserApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/systemUser/getProjectChilderSystemUserList`, params, { headers: { noLoading: true } });
};
// AI警报
// 底部数据接口
export const getAlarmRecordApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/selectPageList`, params, { headers: { noLoading: true } });
};
// 顶部数据接口
export const getAlarmTypeCountApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/aiStatistic/selectAiAnalyseHardWareAlarmTypeCount`, params, { headers: { noLoading: true } });
};
// 顶部数据分页接口
export const getAlarmTypeCountPageApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/aiStatistic/selectAiAnalyseHardWareAlarmTypeCountPage`, params, { headers: { noLoading: true } });
};
// centerTop底部按钮显示数据接口
export const getStatsDirectorateBigScreenApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsDirectorateBigScreen`, params, { headers: { noLoading: true } });
};
// centerTop评分数据接口
export const getStatScoreApi = (params: {}) => {
return http.get(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/getStatScore`, params, { headers: { noLoading: true } });
};
// 项目人员考勤
// 出勤人员/考勤日环比
export const getPersonTypeAndEduStatisticsApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/workerInfo/selectPersonTypeAndEduStatistics`, params, { headers: { noLoading: true } });
};