| | |
| | | }, intervalTime); |
| | | } |
| | | |
| | | // 获取隐患点清单 |
| | | export async function getDangerPoint(data) { |
| | | const response = await axios.post("/hp/sinoDzHiddenDangerPoint/getData", { |
| | | filterObject: { |
| | | year: 2024, // 动态传入的年份参数 |
| | | }, |
| | | }); |
| | | console.log("getDangerPoint:", response); |
| | | return response.data; |
| | | } |
| | | // 获取避险位置 |
| | | export async function getSafeLocation(data) { |
| | | const response = await axios.post("/hp/safeHavenLocation/getData", { |
| | |
| | | return response.data; |
| | | } |
| | | // 获取雨量数据 |
| | | export async function getRainfallData(data) { |
| | | export async function getRainfallData() { |
| | | const response = await axios.post("/hp/rainfallCountyCity/getData", { |
| | | filterObject: {}, |
| | | "pageSize": 1000 |
| | |
| | | console.log("getRainfallData:", response); |
| | | return response.data; |
| | | } |
| | | |
| | | // 获取监测设备信息 |
| | | export async function getDeviceInfo(data) { |
| | | const response = await axios.post("/hp/deviceInfo/getData", { |
| | | filterObject: { |
| | | "dictDeviceType": data, |
| | | "townCode": "110116110000" |
| | | }, |
| | | "pageSize": 10000 |
| | | }); |
| | | return response.data; |
| | | } |
| | | |
| | | // 获取隐患点信息 |
| | | export async function getDangerPoint(data) { |
| | | const response = await axios.post("/hp/sinoDzHiddenDangerPoint/getData", { |
| | | filterObject: { |
| | | "divisionCounty": "110116000000", |
| | | "divisionTown": "110116110000" |
| | | }, |
| | | "pageSize": 10000 |
| | | }); |
| | | return response.data; |
| | | } |