init:first commit of plus-ui
This commit is contained in:
136
src/api/gis/index.ts
Normal file
136
src/api/gis/index.ts
Normal file
@ -0,0 +1,136 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
QualityVO,
|
||||
Query,
|
||||
ConstructionUserVO,
|
||||
MachineryrVO,
|
||||
MaterialsVO,
|
||||
projectNewsVO,
|
||||
safetyInspectionVO,
|
||||
projectNewsDetailVO,
|
||||
weatherVO,
|
||||
safetyDayVO
|
||||
} from './type';
|
||||
/**
|
||||
* 查询大屏质量信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getQualityList = (query?: Query): AxiosPromise<QualityVO> => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏项目新闻列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getprojectNewsList = (query?: Query): AxiosPromise<projectNewsVO[]> => {
|
||||
return request({
|
||||
url: '/project/projectNews/list/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取项目新闻详细信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getprojectNewsDetailList = (id: number): AxiosPromise<projectNewsDetailVO> => {
|
||||
return request({
|
||||
url: '/project/projectNews/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏安全信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getsafetyInspectionList = (query?: Query): AxiosPromise<safetyInspectionVO> => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员大屏数据
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getConstructionUserList = (query?: Query): AxiosPromise<ConstructionUserVO> => {
|
||||
return request({
|
||||
url: '/project/constructionUser/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏机械列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getMachineryrList = (query?: Query): AxiosPromise<MachineryrVO[]> => {
|
||||
return request({
|
||||
url: '/machinery/machinery/list/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏材料信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getMaterialsList = (query?: Query): AxiosPromise<MaterialsVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materials/list/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目天气
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getweatherList = (id?: string): AxiosPromise<weatherVO[]> => {
|
||||
return request({
|
||||
url: '/project/project/weather/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目安全天数
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getSafetyDay = (id?: string): AxiosPromise<safetyDayVO> => {
|
||||
return request({
|
||||
url: '/project/project/safetyDay/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user