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

// 分页搜索设施达标测算
export const getProjectPreEvaluatePage = params => {
  return request({
    url: '/sponge/projectPreEvaluate/page',
    method: 'get',
    params,
  });
};

// 列表搜索设施达标测算
export const getFacilitiesStandardCalcList = params => {
  return request({
    url: '/sponge/facilitiesStandardCalc/list',
    method: 'get',
    params,
  });
};

// 根据工程类型搜索控制项正在启用的数据
export const getControlList = engineeringType => {
  return request({
    url: `/sponge/assessTargetConfigControllerItem/selectTreeByEngineeringType/${engineeringType}`,
    method: 'get',
  });
};

// 根据工程类型搜索评分项正在启用的数据
export const getScoreList = engineeringType => {
  return request({
    url: `/sponge/assessTargetConfigGradeItem/selectTreeByEngineeringType/${engineeringType}`,
    method: 'get',
  });
};

export const projectPreEvaluateAdd = data => {
  return request({
    url: '/sponge/projectPreEvaluate/add',
    method: 'post',
    data,
  });
};

export const projectPreEvaluateDel = ids => {
  return request({
    url: `/sponge/projectPreEvaluate/${ids}`,
    method: 'delete',
  });
};

export const projectPreEvaluateDetails = id => {
  return request({
    url: `/sponge/projectPreEvaluate/${id}`,
    method: 'get',
  });
};

export const projectPreEvaluateSubmit = data => {
  return request({
    url: '/sponge/projectPreEvaluate/submit',
    method: 'post',
    data,
  });
};