zhgdyun/src/api/modules/agjtCommandApi.ts

179 lines
7.8 KiB
TypeScript
Raw Normal View History

2024-05-10 20:33:26 +08:00
// 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: {}) => {
2024-06-05 18:31:26 +08:00
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByInspectMan`, params, {
headers: { noLoading: true }
});
2024-05-10 20:33:26 +08:00
};
// 按分包单位分析
export const getEnterpriseStatusApi = (params: {}) => {
2024-06-05 18:31:26 +08:00
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByEnterprise`, params, {
headers: { noLoading: true }
});
2024-05-10 20:33:26 +08:00
};
2024-05-11 19:15:44 +08:00
// 危大工程弹窗
// 形象进度
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 } });
};
// 天气弹窗
2024-05-11 21:21:47 +08:00
// 顶部数据
2024-05-11 19:15:44 +08:00
export const getDelayEventTypeApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/xzTaskProgressContent/statsDelayEventType`, params, { headers: { noLoading: true } });
};
2024-05-11 21:21:47 +08:00
// 底部列表
export const getProgressContentApi = (params: {}) => {
return http.get(BASEURL + `/xmgl/xzTaskProgressContent/page`, params, { headers: { noLoading: true } });
};
2024-05-11 19:15:44 +08:00
// 风险统计弹窗
// 顶部数据
export const getStatisticsNumDataApi = (params: {}) => {
2024-06-05 18:31:26 +08:00
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, {
headers: { noLoading: true }
});
2024-05-11 19:15:44 +08:00
};
2024-05-11 21:21:47 +08:00
// 安全隐患
// 顶部数据
export const getQualityStatisticsNumDataApi = (params: {}) => {
2024-06-05 18:31:26 +08:00
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params, {
headers: { noLoading: true }
});
2024-05-11 21:21:47 +08:00
};
// 获取分包单位
export const getProjectEnterpriseApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/projectEnterprise/list`, params, { headers: { noLoading: true } });
};
2024-05-13 20:46:26 +08:00
// 获取检查人
export const getSystemUserBySnApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/systemUser/getSystemUserBySn`, params, { headers: { noLoading: true } });
};
2024-05-11 21:21:47 +08:00
// 获取整改人
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 } });
};
2024-05-11 21:26:48 +08:00
// 顶部数据接口
export const getAlarmTypeCountApi = (params: {}) => {
return http.post(BASEURL + `/xmgl/aiStatistic/selectAiAnalyseHardWareAlarmTypeCount`, params, { headers: { noLoading: true } });
2024-05-12 01:52:37 +08:00
};
2024-05-14 20:13:54 +08:00
// 顶部数据分页接口
export const getAlarmTypeCountPageApi = (params: {}) => {
2024-06-05 18:31:26 +08:00
return http.post(BASEURL + `/xmgl/aiStatistic/selectAiAnalyseHardWareAlarmTypeCountPage`, params, {
headers: { noLoading: true }
});
2024-05-14 20:13:54 +08:00
};
2024-05-12 01:52:37 +08:00
// centerTop底部按钮显示数据接口
2024-06-05 18:31:26 +08:00
export const getStatsDirectorateBigScreenApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsDirectorateBigScreen`, params, {
headers: { noLoading: showLoading }
});
2024-05-12 01:52:37 +08:00
};
// centerTop评分数据接口
2024-06-05 18:31:26 +08:00
export const getStatScoreApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/getStatScore`, params, { headers: { noLoading: showLoading } });
2024-05-12 00:30:12 +08:00
};
2024-06-03 13:45:16 +08:00
// 项目人员考勤
// 出勤人员/考勤日环比
2024-06-05 18:31:26 +08:00
export const getPersonTypeAndEduStatisticsApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/workerInfo/selectPersonTypeAndEduStatistics`, params, {
headers: { noLoading: showLoading }
});
2024-06-03 13:45:16 +08:00
};
2024-06-03 16:46:14 +08:00
// 总包出勤情况分析
2024-06-05 18:31:26 +08:00
export const queryAttendanceOfEachCompanyApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/workerAttendance/queryAttendanceOfEachCompany`, params, {
headers: { noLoading: showLoading }
});
2024-06-03 16:46:14 +08:00
};
// 进度情况分析
// 项目总进度/项目剩余天数
2024-06-05 18:31:26 +08:00
export const getCountTaskProgressApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzTaskProgress/countTaskProgress`, params, { headers: { noLoading: showLoading } });
2024-06-03 16:46:14 +08:00
};
// 总包进度列表
2024-06-05 18:31:26 +08:00
export const queryCountEnterpriseApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzTaskProgressTotal/countEnterprise`, params, { headers: { noLoading: showLoading } });
2024-06-03 16:46:14 +08:00
};
// 人员情况
export const performanceAnalysisApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/workerAttendance/safetyPerformanceAnalysis`, params, { headers: { noLoading: showLoading } });
};
// 三色评价
export const statsEnterpriseRiskApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/workerInfo/statsEnterpriseRisk`, params, { headers: { noLoading: showLoading } });
};
// 安全教育视频配置
export const configWeekVideoSaveApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/educationConfigWeekVideo/save`, params, { headers: { noLoading: showLoading } });
};
export const configWeekVideoListApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/educationConfigWeekVideo/list`, params, { headers: { noLoading: showLoading } });
};
// 人员风险趋势
export const getWorkerRiskByProjectApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/xzRiskPrediction/getWorkerRiskByProject`, params, { headers: { noLoading: showLoading } });
};
// 人员风险趋势(总包)
export const getWorkerRiskByEnterpriseApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/xzRiskPrediction/getWorkerRiskByEnterprise`, params, { headers: { noLoading: showLoading } });
};
// 隐患风险预测趋势
export const getSafetyRiskByProjectApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/xzRiskPrediction/getSafetyRiskByProject`, params, { headers: { noLoading: showLoading } });
};
// 隐患风险预测趋势(总包)
export const getSafetyRiskByEnterpriseApi = (params: {}, showLoading: boolean) => {
return http.get(BASEURL + `/xmgl/xzRiskPrediction/getSafetyRiskByEnterprise`, params, { headers: { noLoading: showLoading } });
};
// 特殊作业风险预测趋势
export const getSpecialTrendApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzRiskPrediction/getSpecialTrend`, params, { headers: { noLoading: showLoading } });
};
// 事故风险预测趋势
export const getRiskTrendByProjectApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzRiskPrediction/riskTrendByProject`, params, { headers: { noLoading: showLoading } });
};
// 事故风险预测趋势(总包)
export const getRiskTrendByMainEnterpriseApi = (params: {}, showLoading: boolean) => {
return http.post(BASEURL + `/xmgl/xzRiskPrediction/riskTrendByMainEnterprise`, params, { headers: { noLoading: showLoading } });
};