列表自动滚动
This commit is contained in:
58
src/api/gis/index.ts
Normal file
58
src/api/gis/index.ts
Normal file
@ -0,0 +1,58 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QualityVO, Query, ConstructionUserVO, MachineryrVO, MaterialsVO } 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 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
|
||||
});
|
||||
};
|
43
src/api/gis/type.ts
Normal file
43
src/api/gis/type.ts
Normal file
@ -0,0 +1,43 @@
|
||||
export interface QualityVO {
|
||||
count: number;
|
||||
correctSituation: string;
|
||||
list: Qualitylist[];
|
||||
}
|
||||
export interface Qualitylist {
|
||||
id: number;
|
||||
inspectionTypeLabel: string;
|
||||
inspectionHeadline: string;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface Query {
|
||||
projectId: string | number;
|
||||
pageSize?: string | number;
|
||||
}
|
||||
|
||||
export interface ConstructionUserVO {
|
||||
peopleCount: number;
|
||||
attendanceCount: number;
|
||||
attendanceRate: string;
|
||||
}
|
||||
|
||||
export interface MachineryrVO {
|
||||
//机械名称
|
||||
machineryName: string;
|
||||
//机械数量
|
||||
machineryCount: string;
|
||||
}
|
||||
|
||||
export interface MaterialsVO {
|
||||
//材料名称
|
||||
materialsName: string;
|
||||
//计量单位
|
||||
weightId: string;
|
||||
//预计材料数量
|
||||
quantityCount: string;
|
||||
//入库数量
|
||||
putCount: string;
|
||||
//出库数量
|
||||
outCount: string;
|
||||
value: number;
|
||||
}
|
Reference in New Issue
Block a user