Newer
Older
Nanping_sponge_JXKH / src / api / preassess / runoffCoefficient.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 海绵绩效考个
import request from "@/utils/request";

// 获取配置分页列表
export const getUnderlyingSurfaceRunoffConfigPage = (params) => {
  return request({
    url: "/sponge/underlyingSurfaceRunoffConfig/page",
    method: "get",
    params
  });
};

// 配置新增
export const underlyingSurfaceRunoffConfigAddWithItem = (data) => {
  return request({
    url: "/sponge/underlyingSurfaceRunoffConfig/addWithItem",
    method: "post",
    data
  });
};

// 配置删除
export const underlyingSurfaceRunoffConfigDel = (ids) => {
  return request({
    url: `/sponge/underlyingSurfaceRunoffConfig/${ids}`,
    method: "delete"
  });
};

// 配置复制
export const underlyingSurfaceRunoffConfigCopy = (data) => {
  return request({
    url: "/sponge/underlyingSurfaceRunoffConfig/copy",
    method: "post",
    data
  });
};

// 配置启用
export const underlyingSurfaceRunoffConfigEnable = (id) => {
  return request({
    url: `/sponge/underlyingSurfaceRunoffConfig/enable/${id}`,
    method: "get"
  });
};

// 配置项列表
export const getUnderlyingSurfaceRunoffConfigItemList = (params) => {
  return request({
    url: "/sponge/underlyingSurfaceRunoffConfigItem/list",
    method: "get",
    params
  });
};

// 配置项新增
export const underlyingSurfaceRunoffConfigItemAdd = (data) => {
  return request({
    url: "/sponge/underlyingSurfaceRunoffConfigItem/add",
    method: "post",
    data
  });
};

// 配置项编辑
export const underlyingSurfaceRunoffConfigItemEdit = (data) => {
  return request({
    url: "/sponge/underlyingSurfaceRunoffConfigItem/edit",
    method: "put",
    data
  });
};

// 配置项删除
export const underlyingSurfaceRunoffConfigItemDel = (ids) => {
  return request({
    url: `/sponge/underlyingSurfaceRunoffConfigItem/${ids}`,
    method: "delete"
  });
};