137 lines
5.2 KiB
TypeScript
137 lines
5.2 KiB
TypeScript
// 综合管理——工程概览 接口API
|
|
import http from "@/api";
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
|
|
// 项目信息
|
|
export const getProjectDetail = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/project/getProjectInfoBySn`, params, { headers: { noLoading: showLoading } });
|
|
};
|
|
|
|
// 统计企业下项目各人员统计
|
|
export const getWorkerStatisticsCountApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/workerInfo/getWorkerStatisticsCount`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
// 安全管理
|
|
export const getProjectInspectRecordCountApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/hiddenDangerInspectRecord/getProjectInspectRecordCount`, params, {
|
|
headers: { noLoading: true }
|
|
});
|
|
};
|
|
|
|
// 质量管理
|
|
export const selectQualityStatisticsApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/qualityInspectionRecord/selectQualityStatistics`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
//环境监测
|
|
export const getCurrentDayAirQualityApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/airQualityAnalysis/getCurrentDayAirQuality`, params, { headers: { noLoading: true } });
|
|
};
|
|
|
|
//编辑项目信息 (此模块用来编辑更换项目宣传视频)
|
|
export const editProjectInfo = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/project/edit`, params);
|
|
};
|
|
|
|
// 保存效果图
|
|
export const eidtProjectShowConfig = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/projectShowConfig/eidtProjectShowConfig`, params);
|
|
};
|
|
|
|
// 查询效果图
|
|
export const queryBySnData = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/projectShowConfig/queryBySn`, params, { headers: { noLoading: showLoading } });
|
|
};
|
|
|
|
// 里程碑字典
|
|
export const getStageOption = (params: {}, showLoading: boolean) => {
|
|
return http.get(BASEURL + `/xmgl/dictionaryItem/list`, params, { headers: { noLoading: showLoading } });
|
|
};
|
|
|
|
//甘特图-列表查询任务进度
|
|
export const getParentChildTaskListApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/taskProgress/getParentChildList`, params);
|
|
};
|
|
|
|
// 隐患统计智能分析
|
|
export const getSelectQualityStatisticsNumApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, {
|
|
headers: { noLoading: showLoading }
|
|
});
|
|
};
|
|
|
|
export const getCountDangerLevelApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/countDangerLevel`, params, {
|
|
headers: { noLoading: showLoading }
|
|
});
|
|
};
|
|
|
|
// 分包单位统计
|
|
export const getStatsByEnterpriseApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsByEnterprise`, params);
|
|
};
|
|
|
|
// 责任区域排名
|
|
export const getCountQualityInspectionRecordRegionApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/countQualityInspectionRecordRegion`, params);
|
|
};
|
|
|
|
// 隐患类型分析
|
|
export const getStatsDangerTypeApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/statsDangerType`, params);
|
|
};
|
|
|
|
// 弹窗列表
|
|
export const getXzSecurityQualitylnspectionRecordlistApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/list`, params);
|
|
};
|
|
// 督办
|
|
export const getXzSecurityQualitylnspectionRecordSuperviseApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/supervise`, params);
|
|
};
|
|
|
|
// 隐患智能分析
|
|
export const getNoticeListApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/notice/list`, params, { headers: { noLoading: showLoading } });
|
|
};
|
|
|
|
// 安全问题统计数据|列表
|
|
export const getInspectionSelectQualityApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNum`, params, {
|
|
headers: { noLoading: showLoading }
|
|
});
|
|
};
|
|
export const getInspectionSelectQualityListApi = (params: {}) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/selectQualityStatisticsNumList`, params);
|
|
};
|
|
|
|
// 风险走势图
|
|
export const getInspectionRiskChartApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzSecurityQualityInspectionRecord/riskChart`, params, {
|
|
headers: { noLoading: showLoading }
|
|
});
|
|
};
|
|
|
|
// 特殊作业
|
|
export const getSpecialCountAllSpecialApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzSpecial/countAllSpecial`, params, { headers: { noLoading: showLoading } });
|
|
};
|
|
|
|
// 应急类型统计(今日)
|
|
export const getCountEmergencyTypedApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countEmergencyTyped`, params, { headers: { noLoading: showLoading } });
|
|
};
|
|
|
|
// 应急处置(近七日)
|
|
export const getCountAlarmNumByEnterpriseApi = (params: {}, showLoading: boolean) => {
|
|
return http.post(BASEURL + `/xmgl/xzEmergencyRecord/countAlarmNumByEnterprise`, params, {
|
|
headers: { noLoading: showLoading }
|
|
});
|
|
};
|
|
|
|
// 获取应急物资
|
|
export const getEmergencyReliefListApi = (params: {}) => {
|
|
return http.get(BASEURL + `/xmgl/xzEmergencyReliefGoods/list`, params, { headers: { noLoading: true } });
|
|
};
|