Files
td_official/src/api/gis/index.ts

193 lines
3.8 KiB
TypeScript
Raw Normal View History

2025-07-30 16:25:45 +08:00
import request from '@/utils/request-go';
2025-05-21 11:24:53 +08:00
import { AxiosPromise } from 'axios';
import {
QualityVO,
Query,
ConstructionUserVO,
MachineryrVO,
MaterialsVO,
projectNewsVO,
safetyInspectionVO,
projectNewsDetailVO,
weatherVO,
safetyDayVO
} from './type';
2025-07-30 16:25:45 +08:00
/**
*
* @param query
* @returns {*}
*/
export const getQualityList = (query?: any): AxiosPromise<QualityVO> => {
return request({
url: '/zm/api/v1/system/busInspectionTicket/gisQualityManagementList',
method: 'get',
params: query
});
};
2025-05-21 11:24:53 +08:00
/**
*
* @param query
* @returns {*}
*/
2025-07-30 16:25:45 +08:00
export const getQualityMsg = (query?: any): AxiosPromise<QualityVO> => {
2025-05-21 11:24:53 +08:00
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/v1/system/busInspectionTicket/gisQualityManagement',
2025-05-21 11:24:53 +08:00
method: 'get',
params: query
});
};
/**
*
* @param query
* @returns {*}
*/
2025-07-30 16:25:45 +08:00
export const getprojectNewsList = (query?: any): AxiosPromise<projectNewsVO[]> => {
2025-05-21 11:24:53 +08:00
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/v1/system/sysProjectIntroduce/list',
2025-05-21 11:24:53 +08:00
method: 'get',
params: query
});
};
2025-07-30 16:25:45 +08:00
/**
*
* @param query
* @returns {*}
*/
export const getProgressList = (): AxiosPromise<any> => {
return request({
url: '/zm/api/v1/system/workStatus/getParentProgress',
method: 'get',
params: { fangzhenId: 22034 }
});
};
2025-05-21 11:24:53 +08:00
/**
*
* @param query
* @returns {*}
*/
export const getprojectNewsDetailList = (id: number): AxiosPromise<projectNewsDetailVO> => {
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/v1/system/sysProjectIntroduce/get',
method: 'get',
params: { id }
2025-05-21 11:24:53 +08:00
});
};
/**
*
* @param query
* @returns {*}
*/
2025-07-30 16:25:45 +08:00
export const getsafetyInspectionMsg = (query?: Query): AxiosPromise<safetyInspectionVO> => {
2025-05-21 11:24:53 +08:00
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/v1/system/busHseManagement/gisSafetyManagement',
method: 'get',
params: query
});
};
/**
*
* @param query
* @returns {*}
*/
export const getsafetyInspectionList = (query?: any): AxiosPromise<safetyInspectionVO> => {
return request({
url: '/zm/api/v1/system/busHseManagement/gisSafetyManagementList',
2025-05-21 11:24:53 +08:00
method: 'get',
params: query
});
};
/**
*
* @param query
* @returns {*}
*/
export const getConstructionUserList = (query?: Query): AxiosPromise<ConstructionUserVO> => {
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/wxApplet/wxApplet/busConstructionUser/attendanceCount',
2025-05-21 11:24:53 +08:00
method: 'get',
params: query
});
};
/**
*
* @param query
* @returns {*}
*/
export const getMachineryrList = (query?: Query): AxiosPromise<MachineryrVO[]> => {
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/v1/system/busMachinery/mechanicalCondition',
2025-05-21 11:24:53 +08:00
method: 'get',
params: query
});
};
/**
*
* @param query
* @returns {*}
*/
export const getMaterialsList = (query?: Query): AxiosPromise<MaterialsVO[]> => {
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/v1/system/busEquipmentMaterialsInventory/excelindex',
2025-05-21 11:24:53 +08:00
method: 'get',
params: query
});
};
/**
*
* @param query
* @returns {*}
*/
2025-07-30 16:25:45 +08:00
export const getweatherList = (): AxiosPromise<weatherVO[]> => {
2025-05-21 11:24:53 +08:00
return request({
2025-07-30 16:25:45 +08:00
url: '/zm/api/wxApplet/wxApplet/busConstructionUser/weather',
method: 'get',
params: { location: '106.54,23.47' }
2025-05-21 11:24:53 +08:00
});
};
/**
*
* @param query
* @returns {*}
*/
export const getSafetyDay = (id?: string): AxiosPromise<safetyDayVO> => {
return request({
url: '/project/project/safetyDay/' + id,
method: 'get'
});
};
2025-07-30 16:25:45 +08:00
/**
* Ai检测
* @param query
* @returns {*}
*/
export const getAISafetyInspectionList = (query?: any): AxiosPromise<any> => {
return request({
url: '/zm/api/v1/system/busTour/tourSearchAllList',
method: 'get',
params: query
});
};