guonan
2025-07-08 b040d81c856a77f280b38037e78a8b6a8bdb31ab
src/api/hpApi.js
@@ -146,7 +146,20 @@
  return response.data;
}
// 查询孙胡沟监测设备
// 接口多写几个应该无妨吧
export async function getDeviceNWJ(data, townCode) {
  const response = await axios.post("/hp/deviceInfo/getData", {
    filterObject: {
      "dictDeviceTypeList": [data],
      "townCodeList": [townCode],
      "year": 2025,
    },
    "pageSize": 10000
  });
  return response.data;
}
// 查询孙胡沟监测设备,dictCommunicationType为查询孙胡沟的雨量计
export async function getDeviceInfoSHG(data) {
  const response = await axios.post("/hp/deviceInfo/getData", {
    filterObject: {
@@ -235,11 +248,17 @@
}
// 查询孙胡沟避险场所
export async function getSafePoint() {
export async function getSafePoint(data) {
  const response = await axios.get("/hp/safeHavenLocation/getDataSelect", {
    params: {
      divisionId: "110116110218"
      divisionId: 110116110218
    }
  });
  return response.data;
}
// 查询北京市
export async function getAllCode() {
  const response = await axios.get("/hp/district/getAll");
  return response.data;
}