fuliqi
2024-08-20 a6842851a844e63a8766d63c5410a8e2f27a7d45
src/api/platform/point.js
@@ -44,6 +44,16 @@
  })
}
// 批量修改运维点位
export function batchEdit(data) {
  return request({
    url: '/yw-point/batch',
    method: 'put',
    data: data
  })
}
// 删除运维点位
export function delPoint(id) {
  return request({
@@ -51,3 +61,42 @@
    method: 'delete'
  })
}
// 点位下拉列表
export function pointSelectData(param) {
  return request({
    url: '/yw-point/select',
    method: 'get',
    params: param
  })
}
// 导出
export function exportData(param) {
  return request({
    url: '/yw-point/export',
    method: 'get',
    params: param,
    responseType: 'blob'
  })
}
// 导入
export function importData(data, unitId) {
  return request({
    url: '/yw-point/import/' + unitId,
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
// 根据单位id查找合同
export function timeRange(unitId) {
  return request({
    url: '/system/contract/time/' + unitId,
    method: 'get'
  })
}