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

// 列表查询考核指标配置
export function getAssessTargetConfigPage(params) {
  return request({
    url: "/sponge/assessTargetConfig/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/assessTargetConfig/${ids}`,
    method: "delete"
  });
}

// 根据配置指标管理主键id查询配置详情-返回树结构
export function getAssessTargetConfigControllerItem(targetId) {
  return request({
    url: `/sponge/assessTargetConfigControllerItem/${targetId}`,
    method: "get"
  });
}

// 批量修改考核指标控制项数据
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
  });
}