Newer
Older
KaiFengPC / src / api / preassess / scaleConfig.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
import request from "@/utils/request";

// 分页查询设施建议比例配置
export const getFacilitiesSuggestRateConfigPage = (params) => {
  return request({
    url: "/sponge/facilitiesSuggestRateConfig/page",
    method: "get",
    params
  });
};

// 新增设施建议比例配置
export const facilitiesSuggestRateConfigAddWithItem = (data) => {
  return request({
    url: "/sponge/facilitiesSuggestRateConfig/addWithItem",
    method: "post",
    data
  });
};

// 删除设施建议比例配置
export const facilitiesSuggestRateConfigDel = (ids) => {
  return request({
    url: `/sponge/facilitiesSuggestRateConfig/${ids}`,
    method: "delete"
  });
};

// 复制设施建议比例配置
export const facilitiesSuggestRateConfigCopy = (data) => {
  return request({
    url: '/sponge/facilitiesSuggestRateConfig/copy',
    method: "post",
    data
  });
};

// 启用设施建议比例配置
export const facilitiesSuggestRateConfigEnable = (id) => {
  return request({
    url: `/sponge/facilitiesSuggestRateConfig/enable/${id}`,
    method: "get"
  });
};

// 新增设施建议比例配置项
export const facilitiesSuggestRateConfigItemAdd = (data) => {
  return request({
    url: "/sponge/facilitiesSuggestRateConfigItem/add",
    method: "post",
    data
  });
};

// 修改设施建议比例配置项
export const facilitiesSuggestRateConfigItemEdit = (data) => {
  return request({
    url: "/sponge/facilitiesSuggestRateConfigItem/edit",
    method: "put",
    data
  });
};

// 修改设施建议比例配置项
export const facilitiesSuggestRateConfigItemDel = (ids) => {
  return request({
    url: `/sponge/facilitiesSuggestRateConfigItem/${ids}`,
    method: "delete"
  });
};

// 列表查询设施适应性配置
export const facilitiesSuggestRateConfigItemList = (params) => {
  return request({
    url: '/sponge/facilitiesSuggestRateConfigItem/list',
    method: "get",
    params
  });
};