You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							|  |  |  | import request from "@/utils/request"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 查询天气状况
 | 
					
						
							|  |  |  | export function getWeatherFacts() { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/weatherForecast/weatherFacts", | 
					
						
							|  |  |  |     method: "post", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 按小时查询天气状况
 | 
					
						
							|  |  |  | export function getHourlyWeather() { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/weatherForecast/hourlyWeather", | 
					
						
							|  |  |  |     method: "post", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 查询气象预警
 | 
					
						
							|  |  |  | export function getMeteorologicalEarlyWarning() { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/weatherForecast/meteorologicalEarlyWarning", | 
					
						
							|  |  |  |     method: "post", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 查询气象预警数量
 | 
					
						
							|  |  |  | export function getQueryTheNumberOfMeteorologicalWarning() { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/weatherForecast/queryTheNumberOfMeteorologicalWarning", | 
					
						
							|  |  |  |     method: "post", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 统计气象设备当天最新信息列表
 | 
					
						
							|  |  |  | export function getListLatest() { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/dc/system/meteorologicalDetector/listLatest", | 
					
						
							|  |  |  |     method: "get", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 统计气象设备信息列表
 | 
					
						
							|  |  |  | export function getDeviceNameListLatest(name) { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/dc/system/meteorologicalDetector/" + name, | 
					
						
							|  |  |  |     method: "get", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // 根据物联产品id获取设备数据
 | 
					
						
							|  |  |  | export function getIdDevices(id) { | 
					
						
							|  |  |  |   return request({ | 
					
						
							|  |  |  |     url: "/business/device/devices/" + id, | 
					
						
							|  |  |  |     method: "get", | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } |