import request from '@/utils/request'

// 查询分级��控管理列表
export function listGradeManage(query) {
  return request({
    url: '/laboratory/gradeManage/list',
    method: 'get',
    params: query
  })
}

// 查询分级��控管理详细
export function getGradeManage(id) {
  return request({
    url: '/laboratory/gradeManage/' + id,
    method: 'get'
  })
}

// 新增分级��控管理
export function addGradeManage(data) {
  return request({
    url: '/laboratory/gradeManage',
    method: 'post',
    data: data
  })
}

// 修改分级��控管理
export function updateGradeManage(data) {
  return request({
    url: '/laboratory/gradeManage',
    method: 'put',
    data: data
  })
}

// 删除分级��控管理
export function delGradeManage(id) {
  return request({
    url: '/laboratory/gradeManage/' + id,
    method: 'delete'
  })
}

// 查询用户列表
export function listUser(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}

//获取职位列表
export function optionselect(query) {
  return request({
    url: '/system/post/optionselect',
    method: 'get',
    params: query
  })
}

//获取实验室列表
export function listInfo(query) {
  return request({
    url: '/laboratory/subject/listInfo',
    method: 'get',
    params: query
  })
}
