2023-05-16 16:24:57 +08:00
|
|
|
import { ScreenResponse, ResponseSame } from "@/api/types/common";
|
2023-05-13 18:44:53 +08:00
|
|
|
import http from "@/api";
|
2023-05-16 16:24:57 +08:00
|
|
|
|
2023-05-13 18:44:53 +08:00
|
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
|
|
|
/**
|
|
|
|
|
* @name 可视化大屏
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//企业资质统计
|
2023-05-16 16:24:57 +08:00
|
|
|
export const getCompanyAll = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.CompanyAllResponse>>(BASEURL + `/gov/api/index/enterpriseMainStat`);
|
2023-05-13 18:44:53 +08:00
|
|
|
};
|
|
|
|
|
//查询工程分类统计
|
2023-05-16 16:24:57 +08:00
|
|
|
export const getProjectAll = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.ProjectAllResponse>>(BASEURL + `/gov/api/index/engineeringTypeStat`);
|
2023-05-13 18:44:53 +08:00
|
|
|
};
|
|
|
|
|
//查询所有项目数
|
2023-05-16 16:24:57 +08:00
|
|
|
export const getProjectNumber = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.ProjectNumberResponse>>(BASEURL + `/gov/api/index/projectStat`);
|
2023-05-13 18:44:53 +08:00
|
|
|
};
|
|
|
|
|
//扬尘报警类型统计
|
2023-05-16 16:24:57 +08:00
|
|
|
export const getFugitiveDustAll = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.FugitiveDustAllResponse>>(BASEURL + `/gov/api/index/environmentAlarmStat`);
|
2023-05-13 18:44:53 +08:00
|
|
|
};
|
|
|
|
|
//实名制信息统计
|
2023-05-16 16:24:57 +08:00
|
|
|
export const getRealNameSystem = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.RealNameSystemResponse>>(BASEURL + `/gov/api/index/workerStat`);
|
2023-05-13 18:44:53 +08:00
|
|
|
};
|
|
|
|
|
//顶部查询工程统计信息
|
2023-05-16 16:24:57 +08:00
|
|
|
export const getEngineeringAll = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.EngineeringAllResponse>>(BASEURL + `/gov/api/index/engineeringStat`);
|
2023-05-13 18:44:53 +08:00
|
|
|
};
|
2023-05-19 16:10:07 +08:00
|
|
|
//顶部查询工程统计信息
|
|
|
|
|
export const getMapProject = () => {
|
|
|
|
|
return http.get<ResponseSame<ScreenResponse.mapProjectResponse>>(BASEURL + `/gov/api/index/engineeringList`);
|
|
|
|
|
};
|