{"size": 1225, "ext": "js", "max_stars_repo_path": "src/api/equipment.js", "max_stars_repo_name": "liuwei5815/DEECOOP_VUE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/equipment.js", "max_issues_repo_name": "liuwei5815/DEECOOP_VUE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/equipment.js", "max_forks_repo_name": "liuwei5815/DEECOOP_VUE", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.2535211268, "max_line_length": 55, "alphanum_fraction": 0.6334693878}
import request from '@/utils/request'

export function listPageEquipments(data) {
  return request({
    url: '/base/equipment/listPageEquipments',
    method: 'post',
    data: data
  })
}

//添加信息
export function addEquipment(data) {
  return request({
    url: '/base/equipment/addEquipment',
    method: 'post',
    data: data
  })
}

//修改信息
export function updateEquipment(data) {
  return request({
    url: '/base/equipment/updateEquipment',
    method: 'post',
    data: data
  })
}

//启用禁用
export function updateDisableEquipment(id, isdisable) {
  return request({
    url: '/base/equipment/update',
    method: 'post',
    data: {
      id: id,
      isdisable: isdisable
    }
  })
}

//删除功能
export function deleteEquipments(ids) {
  return request({
    url: '/base/equipment/deleteByIds',
    method: 'post',
    data: {
      ids: ids
    }
  })
}

export function exportExcelEquipments(ids) {
  return request({
    url: '/base/equipment/exportExcelEquipments',
    method: 'post',
    responseType: 'blob',
    data: {
      ids: ids
    }
  })
}

export function treeDepartmentEquipment(data) {
  return request({
    url: '/base/equipment/treeDepartmentEquipment',
    method: 'post',
    data: data
  })
}

