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

// 列表搜索考核指标配置
export function getAssessTargetConfigPage(params) {
  return request({
    url: '/sponge/performanceConfig/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,
  });
}

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

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

// 批量修改考核指标控制项数据
export function assessTargetConfigControllerItemBatchUpdate(data) {
  return request({
    url: '/sponge/performanceConfigItem/add',
    method: 'post',
    data,
  });
}
// 批量修改考核指标控制项数据
export function assessTargetConfigEdit(data) {
  return request({
    url: '/sponge/performanceConfigItem/edit',
    method: 'put',
    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 deleteConfigControllerItem(id) {
  return request({
    url: `/sponge/performanceConfigItem/${id}`,
    method: 'delete',
  });
}

// 详细搜索海绵考核指标配置
export function detailDataType(id) {
  return request({
    url: `/sponge/performanceConfigItem/detailDataType`,
    method: 'get',
  });
}

// 复制海绵考核指标配置
export function performanceConfigCopy(data) {
  return request({
    url: `/sponge/performanceConfig/copy`,
    method: 'post',
    data,
  });
}

// 复制海绵考核指标配置
export function performanceConfigEnable(id) {
  return request({
    url: `/sponge/performanceConfig/enable/${id}`,
    method: 'get',
  });
}

// export function performanceConfigDisable(id) {
//   return request({
//     url: `/sponge/performanceConfig/disable/${id}`,
//     method: "get",
//   });
// }
// 复制海绵考核指标配置

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

// 停用海绵考核指标配置

// 启用启用海绵考核指标配置
export function enableAndEnable(id) {
  return request({
    url: `/sponge/performanceConfig/enable/${id}`,
    method: 'get',
  });
}

// 停用海绵考核指标配置项
export function performanceConfigDisable(id) {
  return request({
    url: `/sponge/performanceConfig/disable/${id}`,
    method: 'get',
  });
}
// 启用-停用海绵考核指标配置项
export function performanceConfigEnableAndDisable(id) {
  return request({
    url: `/sponge/performanceConfigItem/enableAndDisable/${id}`,
    method: 'get',
  });
}