Newer
Older
smartwell_front / src / api / home / ledger / location.ts
liyaguang on 27 Apr 851 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, data1: any) {
  return request({
    url: '/system/busLedgerPipe/batchDelete',
    method: 'post',
    data: {
      ids: data,
      keys: data1
    },
  })
}

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

  })
}

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