Newer
Older
Nanping_sponge_GCYPG / src / api / preassess / removalRate.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 工程预评估
import request from "@/utils/request";

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

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

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

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

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


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

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

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

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