大屏天气列表

This commit is contained in:
Teo
2025-05-13 18:29:12 +08:00
parent 055a87d2c2
commit c92f2091d9
27 changed files with 130 additions and 29 deletions

View File

@ -1,6 +1,16 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { QualityVO, Query, ConstructionUserVO, MachineryrVO, MaterialsVO, projectNewsVO, safetyInspectionVO, projectNewsDetailVO } from './type';
import {
QualityVO,
Query,
ConstructionUserVO,
MachineryrVO,
MaterialsVO,
projectNewsVO,
safetyInspectionVO,
projectNewsDetailVO,
weatherVO
} from './type';
/**
* 查询大屏质量信息
* @param query
@ -97,3 +107,16 @@ export const getMaterialsList = (query?: Query): AxiosPromise<MaterialsVO[]> =>
params: query
});
};
/**
* 查询项目天气
* @param query
* @returns {*}
*/
export const getweatherList = (id?: string): AxiosPromise<weatherVO[]> => {
return request({
url: '/project/project/weather/' + id,
method: 'get'
});
};

View File

@ -73,3 +73,16 @@ export interface safetyInspectionlist {
name: string;
meetingDate: string;
}
export interface weatherVO {
date: string;
week: string;
tempMax: string;
tempMin: string;
dayStatus: string;
dayIcon: string;
nightStatus: string;
nightIcon: string;
sunRise: string;
sunSet: string;
}