guonan
2025-07-09 a113085bf4960ea08532bf8d6fed08a72f9e66c3
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: {
@@ -165,7 +178,7 @@
export async function getDeviceInfoByPage(data, pageNum) {
  const response = await axios.post("/hp/deviceInfo/getData", {
    filterObject: {
      "divisionDistrict": data,
      "divisionDistrictList": [data],
      // 所属项目
      // 如果不加这个,则返回的全是强震仪(1933099069385355265)
      "belongObjList": [