Newer
Older
KaiFengPC / src / api / drainagePipeline / pipelinePoint.js
@鲁yixuan 鲁yixuan on 19 Aug 2 KB updata
import request from '@/utils/request';

// 搜索管点信息分页
export function pagepipelinePoint(query) {
  return request({
    url: '/business/pipelinePoint/page',
    method: 'get',
    params: query,
  });
}

// 搜索管点信息列表
export function listpipelinePoint(query) {
  return request({
    url: '/business/pipelinePoint/list',
    method: 'get',
    params: query,
  });
}

// 搜索管点信息详细
export function getpipelinePoint(id) {
  return request({
    url: '/business/pipelinePoint/' + id,
    method: 'get',
  });
}

// 新增管点信息
export function addpipelinePoint(data) {
  return request({
    url: '/business/pipelinePoint/add',
    method: 'post',
    data: data,
  });
}

// 修改管点信息
export function updatepipelinePoint(data) {
  return request({
    url: '/business/pipelinePoint/edit',
    method: 'put',
    data: data,
  });
}

// 删除管点信息
export function delpipelinePoint(id) {
  return request({
    url: '/business/pipelinePoint/' + id,
    method: 'delete',
  });
}

// 材质数量统计(井盖材质)
export function getstatistic(id) {
  return request({
    url: '/business/pipelinePoint/texture_statistic',
    method: 'get',
  });
}

// 各类型的数量统计(资产统计)
export function getTypestatistic(id) {
  return request({
    url: '/business/pipelinePoint/type_statistic',
    method: 'get',
  });
}

// 各类型的数量统计(管道材质)
export function getTypesline(id) {
  return request({
    url: '/business/pipelineInfo/texture_statistic_top5',
    method: 'get',
  });
}

// 头部长度
export function getTypeslinestatistic(id) {
  return request({
    url: '/business/pipelineInfo/type_statistic',
    method: 'get',
  });
}

//导入管点信息
export function getTypeimport(data) {
  return request({
    url: '/business/pipelinePoint/import',
    method: 'post',
    data: data,
  });
}

//更新管点信息
export function getTypeimportupdate(data) {
  return request({
    url: '/business/pipelineUpgradeInfo/upgrade_pipeline_point',
    method: 'post',
    data: data,
  });
}

//导入管线信息
export function getTypeimportline(data) {
  return request({
    url: '/business/pipelineInfo/import',
    method: 'post',
    data: data,
  });
}

//更新管线信息
export function getTypeimportlineupdate(data) {
  return request({
    url: '/business/pipelineUpgradeInfo/upgrade_pipeline_info',
    method: 'post',
    data: data,
  });
}