Newer
Older
casic-smartcity-well-front / src / api / data.js
[wangxitong] on 8 Jul 2021 3 KB mars3d总览
/**
 * 数据管理接口
 */
import request from '@/utils/request'
// 井盖数据查询
export function getWellData(params) {
  return request({
    url: 'smartwell/welldata/list',
    method: 'get',
    params
  })
}
// 液位数据查询
export function getLiquidData(params) {
  return request({
    url: 'smartwell/liquiddata/list',
    method: 'get',
    params
  })
}
// 燃气数据查询
export function getGasData(params) {
  return request({
    url: 'smartwell/gasdata/list',
    method: 'get',
    params
  })
}
// 开挖数据查询
export function getDigData(params) {
  return request({
    url: 'smartwell/digdata/list',
    method: 'get',
    params
  })
}
// 有害气体数据查询
export function getHarmfulData(params) {
  return request({
    url: 'smartwell/harmfuldata/list',
    method: 'get',
    params
  })
}
// 温湿度数据查询
export function getTempData(params) {
  return request({
    url: 'smartwell/tempdata/list',
    method: 'get',
    params
  })
}
// 井盖定位监测仪数据查询
export function getWellLocaData(params) {
  return request({
    url: 'smartwell/welllocadata/list',
    method: 'get',
    params
  })
}
// 噪声记录仪数据查询
export function getNoiseData(params) {
  return request({
    url: 'smartwell/noisedata/list',
    method: 'get',
    params
  })
}

// 批量导出井盖数据
export function batchExportWellData(params) {
  return request({
    url: 'smartwell/welldata/export',
    method: 'get',
    timeout: 120000,
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 批量导出液位数据
export function batchExportLiquidData(params) {
  return request({
    url: 'smartwell/liquiddata/export',
    method: 'get',
    timeout: 120000,
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 批量导出燃气数据
export function batchExportGasData(params) {
  return request({
    url: 'smartwell/gasdata/export',
    method: 'get',
    timeout: 120000, // 120s,2分钟
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 批量导出开挖数据
export function batchExportDigData(params) {
  return request({
    url: 'smartwell/digdata/export',
    method: 'get',
    timeout: 120000, // 120s,2分钟
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 批量导出温湿度数据
export function batchExportTempData(params) {
  return request({
    url: 'smartwell/tempdata/export',
    method: 'get',
    timeout: 120000, // 120s,2分钟
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 批量导出有害气体数据
export function batchExportHarmfulData(params) {
  return request({
    url: 'smartwell/harmfuldata/export',
    method: 'get',
    timeout: 120000, // 120s,2分钟
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 批量导出井盖定位监测仪数据
export function batchExportWellLocaData(params) {
  return request({
    url: 'smartwell/welllocadata/export',
    method: 'get',
    timeout: 120000, // 120s,2分钟
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}

// 噪声记录仪数据导出
export function batchExportNoiseData(params) {
  return request({
    url: 'smartwell/noisedata/export',
    method: 'get',
    timeout: 120000, // 120s,2分钟
    params,
    responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
  })
}