Newer
Older
KaiFengPC / src / api / drainagePipeline / pipelinePoint.js
@鲁yixuan 鲁yixuan on 19 Aug 2 KB updata
  1. import request from '@/utils/request';
  2.  
  3. // 搜索管点信息分页
  4. export function pagepipelinePoint(query) {
  5. return request({
  6. url: '/business/pipelinePoint/page',
  7. method: 'get',
  8. params: query,
  9. });
  10. }
  11.  
  12. // 搜索管点信息列表
  13. export function listpipelinePoint(query) {
  14. return request({
  15. url: '/business/pipelinePoint/list',
  16. method: 'get',
  17. params: query,
  18. });
  19. }
  20.  
  21. // 搜索管点信息详细
  22. export function getpipelinePoint(id) {
  23. return request({
  24. url: '/business/pipelinePoint/' + id,
  25. method: 'get',
  26. });
  27. }
  28.  
  29. // 新增管点信息
  30. export function addpipelinePoint(data) {
  31. return request({
  32. url: '/business/pipelinePoint/add',
  33. method: 'post',
  34. data: data,
  35. });
  36. }
  37.  
  38. // 修改管点信息
  39. export function updatepipelinePoint(data) {
  40. return request({
  41. url: '/business/pipelinePoint/edit',
  42. method: 'put',
  43. data: data,
  44. });
  45. }
  46.  
  47. // 删除管点信息
  48. export function delpipelinePoint(id) {
  49. return request({
  50. url: '/business/pipelinePoint/' + id,
  51. method: 'delete',
  52. });
  53. }
  54.  
  55. // 材质数量统计(井盖材质)
  56. export function getstatistic(id) {
  57. return request({
  58. url: '/business/pipelinePoint/texture_statistic',
  59. method: 'get',
  60. });
  61. }
  62.  
  63. // 各类型的数量统计(资产统计)
  64. export function getTypestatistic(id) {
  65. return request({
  66. url: '/business/pipelinePoint/type_statistic',
  67. method: 'get',
  68. });
  69. }
  70.  
  71. // 各类型的数量统计(管道材质)
  72. export function getTypesline(id) {
  73. return request({
  74. url: '/business/pipelineInfo/texture_statistic_top5',
  75. method: 'get',
  76. });
  77. }
  78.  
  79. // 头部长度
  80. export function getTypeslinestatistic(id) {
  81. return request({
  82. url: '/business/pipelineInfo/type_statistic',
  83. method: 'get',
  84. });
  85. }
  86.  
  87. //导入管点信息
  88. export function getTypeimport(data) {
  89. return request({
  90. url: '/business/pipelinePoint/import',
  91. method: 'post',
  92. data: data,
  93. });
  94. }
  95.  
  96. //更新管点信息
  97. export function getTypeimportupdate(data) {
  98. return request({
  99. url: '/business/pipelineUpgradeInfo/upgrade_pipeline_point',
  100. method: 'post',
  101. data: data,
  102. });
  103. }
  104.  
  105. //导入管线信息
  106. export function getTypeimportline(data) {
  107. return request({
  108. url: '/business/pipelineInfo/import',
  109. method: 'post',
  110. data: data,
  111. });
  112. }
  113.  
  114. //更新管线信息
  115. export function getTypeimportlineupdate(data) {
  116. return request({
  117. url: '/business/pipelineUpgradeInfo/upgrade_pipeline_info',
  118. method: 'post',
  119. data: data,
  120. });
  121. }