Newer
Older
KaiFengPC / src / api / spongePerformance / examineManage.js
@鲁yixuan 鲁yixuan on 19 Aug 2 KB updata
import request from '@/utils/request';

// 列表搜索考核指标配置
export function getAssessTargetConfigPage(params) {
  return request({
    url: '/sponge/performanceEvaluate/page',
    method: 'get',
    params,
  });
}

// 新增考核指标配置
export function assessTargetConfigAdd(data) {
  return request({
    url: '/sponge/assessTargetConfig/add',
    method: 'post',
    data,
  });
}
// 复制考核指标配置
export function assessTargetConfigCopy(data) {
  return request({
    url: '/sponge/assessTargetConfig/copy',
    method: 'post',
    data,
  });
}

// 根据配置指标管理主键id搜索配置详情-返回树结构
export function getAssessTargetConfigControllerItem(params) {
  return request({
    url: `/sponge/performanceEvaluateItem/tree`,
    method: 'get',
    params,
  });
}

// 批量修改考核指标控制项数据
export function assessTargetConfigControllerItemBatchUpdate(data) {
  return request({
    url: '/sponge/assessTargetConfigControllerItem/batchUpdate',
    method: 'post',
    data,
  });
}

// 启用
export function assessTargetConfigOpen(data) {
  return request({
    url: '/sponge/assessTargetConfig/open',
    method: 'post',
    data,
  });
}

// 禁用
export function assessTargetConfigClose(data) {
  return request({
    url: '/sponge/assessTargetConfig/close',
    method: 'post',
    data,
  });
}

// 根据配置指标管理主键id搜索配置详情-返回树结构
export function getAssessTargetConfigGradeItem(targetId) {
  return request({
    url: `/sponge/assessTargetConfigGradeItem/${targetId}`,
    method: 'get',
  });
}

// 批量修改考核指标评分项数据
export function assessTargetConfigGradeItemBatchUpdate(data) {
  return request({
    url: '/sponge/assessTargetConfigGradeItem/batchUpdate',
    method: 'post',
    data,
  });
}

export function performanceEvaluateItemEdit(data) {
  return request({
    url: '/sponge/performanceEvaluateItem/edit',
    method: 'put',
    data,
  });
}

// 删除考核指标配置
export function assessTargetConfigDel(ids) {
  return request({
    url: `/sponge/performanceEvaluate/${ids}`,
    method: 'delete',
  });
}

// 复制海绵考核指标配置
export function performanceConfigAdd(data) {
  return request({
    url: `/sponge/performanceEvaluate/add`,
    method: 'post',
    data,
  });
}
export function performanceConfigEdit(data) {
  return request({
    url: `/sponge/performanceEvaluate/edit`,
    method: 'put',
    data,
  });
}