Newer
Older
KaiFengPC / src / api / spongePerformance / waterloggedArea.js
@zhangdeliang zhangdeliang on 23 May 2 KB 初始化项目
import request from '@/utils/request';
// 获取项目列列表
export function getInfo(params) {
  return request({
    url: `/sponge/waterloggingRecord/page`,
    method: 'get',
    params,
  });
}
export const projectInfoAdd = data => {
  return request({
    url: `/sponge/waterloggingRecord/add`,
    method: 'post',
    data,
  });
};
// 列表查询RTU内涝监测记录
export const waterloggingRecordList = params => {
  return request({
    url: `/sponge/waterloggingRecord/list`,
    method: 'get',
    params,
  });
};

export const waterloggingRelationoDelete = ids => {
  return request({
    url: `/sponge/waterloggingRelation/${ids}`,
    method: 'delete',
  });
};

export const projectInfoDelete = ids => {
  return request({
    url: `/sponge/waterloggingRelation/${ids}`,
    method: 'delete',
  });
};
export const projectInfoGet = ids => {
  return request({
    url: `/sponge/performanceConfigItem/${ids}`,
    method: 'get',
  });
};

export const dynamic_page_data_type = data => {
  return request({
    url: `/sponge/preventionRemove/list`,
    method: 'post',
    data,
  });
};

export const dynamic_page_data_typeedit = data => {
  return request({
    url: `/sponge/preventionRemove/edit`,
    method: 'put',
    data,
  });
};
export const waterloggingRelationAdd = data => {
  return request({
    url: `/sponge/waterloggingRelation/add`,
    method: 'post',
    data,
  });
};

export const waterloggingRelationEdit = data => {
  return request({
    url: `/sponge/waterloggingRelation/edit`,
    method: 'put',
    data,
  });
};
export function preventionInfo(data) {
  return request({
    url: `/sponge/preventionRemove/list`,
    method: 'post',
    data,
  });
}

// 分页查询海绵考核--项目内涝点关联信息
export const waterloggingRelationPage = params => {
  return request({
    url: `/sponge/waterloggingRelation/page`,
    method: 'get',
    params,
  });
};

// 项目列表--项目内涝点关联信息
export const waterloggingRelationProjectList = params => {
  return request({
    url: `/sponge/waterloggingRelation/projectList`,
    method: 'get',
    params,
  });
};

// 分页查询海绵考核--内涝点列表
export const waterloggingRelationWaterloggingList = params => {
  return request({
    url: `/sponge/waterloggingRelation/waterloggingList`,
    method: 'get',
    params,
  });
};

export const monitoringDetail = data => {
  return request({
    url: `/sponge/waterloggingRelation/monitoringDetail`,
    method: 'POST',
    data,
  });
};

export const waterloggingRelationAll = params => {
  return request({
    url: `/sponge/waterloggingRelation/allWaterloggingList`,
    method: 'get',
    params,
  });
};

// 分页查询海绵考核--内涝点列表
export const allWaterloggingList = params => {
  return request({
    url: `/sponge/waterloggingRelation/allWaterloggingList`,
    method: 'get',
    params,
  });
};