Newer
Older
KaiFengPC / src / api / preassess / calculate.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
import request from '@/utils/request';

// 分页搜索设施达标测算
export const getFacilitiesStandardCalcPage = params => {
  return request({
    url: '/sponge/facilitiesStandardCalc/page',
    method: 'get',
    params,
  });
};
// 列表搜索项目建设目标配置
export const getProjectBuildTargetConfigList = params => {
  return request({
    url: '/sponge/projectBuildTargetConfig/list',
    method: 'get',
    params,
  });
};
// 计算
export const facilitiesStandardCalcEdit = data => {
  return request({
    url: '/sponge/facilitiesStandardCalc/edit',
    method: 'put',
    data,
  });
};
// 提交
export const facilitiesStandardCalcSubmit = data => {
  return request({
    url: '/sponge/facilitiesStandardCalc/submit',
    method: 'post',
    data,
  });
};
// 详细搜索设施达标测算
export const getFacilitiesStandardCalcInfo = id => {
  return request({
    url: `/sponge/facilitiesStandardCalc/${id}`,
    method: 'get',
  });
};

// 删除设施达标测算
export const facilitiesStandardCalcDel = ids => {
  return request({
    url: `/sponge/facilitiesStandardCalc/${ids}`,
    method: 'delete',
  });
};