Newer
Older
smartwell_front / src / api / home / ledger / location.ts
liyaguang on 22 Jan 721 bytes 场站视频
/**
 * 台账管理--安装位置管理接口
 */
import request from '@/api/index'

// 安装位置列表
export function getSyncListPage(data: any) {
  return request({
    url: `/system/busLedgerPipe/listPage?limit=${data.limit}&offset=${data.offset}`,
    method: 'post',
    data,
  })
}
// 删除点位
export function removeLocation(data: any) {
  return request({
    url: '',
    method: 'post',
    data: {
      ids: data,
    },
  })
}

// 导出列表
export function exportLocation(params: any) {
  return request({
    url: '',
    method: 'get',
    params,
    responseType: 'blob',
  })
}

export function importLocation(data: any) {
  return request({
    url: '',
    method: 'post',
    data,
  })
}