Newer
Older
KaiFengPC / src / api / spongePerformance / surfaceWater.js
@zhangdeliang zhangdeliang on 23 May 3 KB 初始化项目
import request from '@/utils/request';
// 获取列表
export function waterQualityUserId (data) {
  return request({
    url: `/sponge/waterQualitySampleInfo/list`,
    method: 'post',
    data: data,
  });
}
//考核水体下拉框数据
export function riverInfoWater (data) {
  return request({
    url: `/sponge/riverInfo/list`,
    method: 'post',
    data: data,
  });
}
// 地水质采样信息表头
export function waterQualityinformation (query) {
  return request({
    url: `/sponge/waterQualitySampleInfo/head`,
    method: 'get',
    params: query,
  });
}

//新增
export function waterQualityAdd (data) {
  return request({
    url: `/sponge/waterQualitySampleInfo/add`,
    method: 'post',
    data: data,
  });
}

//修改
export const waterQualityEdit = data => {
  return request({
    url: `/sponge/waterQualitySampleInfo/edit`,
    method: 'put',
    data,
  });
};

//删除
export function waterQualityDelete (ids) {
  return request({
    url: `/sponge/waterQualitySampleInfo/${ids}`,
    method: 'delete',
  });
}

//地表水体新增动态配置
export function sampleConfigconfiguration (data) {
  return request({
    url: `/sponge/sampleConfig/list`,
    method: 'post',
    data: data,
  });
}
//
export function waterQualitySampleInfopaging (query) {
  return request({
    url: `/sponge/waterQualitySampleInfo/page`,
    method: 'get',
    params: query,
  });
}

// 获取水质目标列表
export function waterQualityConfigUserId (data) {
  return request({
    url: `/sponge/waterQualityConfig/list`,
    method: 'post',
    data: data,
  });
}

//获取水质目标
export function waterQualityfigpaging (data) {
  return request({
    url: `/sponge/waterQualityConfig/page`,
    method: 'post',
    data: data,
  });
}

//配置水质目标新增
export function waterQualityConfigAdd (data) {
  return request({
    url: `/sponge/waterQualityConfig/add`,
    method: 'post',
    data: data,
  });
}

//配置水质目标删除 /waterQualityConfig/edit
export function waterQualityConfigDelete (ids) {
  return request({
    url: `/sponge/waterQualityConfig/${ids}`,
    method: 'delete',
  });
}

//配置水质目标修改   /blackOdorSampleInfo/list
export const waterQualityConfigEdit = data => {
  return request({
    url: `/sponge/waterQualityConfig/edit`,
    method: 'put',
    data,
  });
};

// 黑臭采样信息列表   /blackOdorSampleInfo/add
export function blackOdorUserId (data) {
  return request({
    url: `/sponge/blackOdorSampleInfo/list`,
    method: 'post',
    data: data,
  });
}

// 黑臭采样信息表头
export function blackOdorinformation (query) {
  return request({
    url: `/sponge/blackOdorSampleInfo/head`,
    method: 'get',
    params: query,
  });
}

//黑臭采样信息新增
export function blackOdorAdd (data) {
  return request({
    url: `/sponge/blackOdorSampleInfo/add`,
    method: 'post',
    data: data,
  });
}
//黑臭采样信息修改
export const blackOdorEdit = data => {
  return request({
    url: `/sponge/blackOdorSampleInfo/edit`,
    method: 'put',
    data,
  });
};
//黑臭采样信息删除
export function blackOdorDelete (ids) {
  return request({
    url: `/sponge/blackOdorSampleInfo/${ids}`,
    method: 'delete',
  });
}

//黑臭采样信息
export function blackOdorpaging (query) {
  return request({
    url: `/sponge/blackOdorSampleInfo/page`,
    method: 'get',
    params: query,
  });
}

//黑臭采样照片
export function blackOdorpagingriverInfo (data) {
  return request({
    url: `/sponge/riverInfo/list`,
    method: 'post',
    data: data,
  });
}