移动端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

153 lines
2.8 KiB

  1. import request from '@/utils/request'
  2. // 获取区下拉
  3. export function bigDataHcAreaInfo(query) {
  4. return request({
  5. url: '/bigData/hc/hcAreaInfo',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 获取乡镇下拉
  11. export function bigDataHcCountyInfo(query) {
  12. return request({
  13. url: '/bigData/hc/hcCountyInfo',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. //获取村级下拉
  19. export function bigDataHcVillageInfo(query) {
  20. return request({
  21. url: '/bigData/hc/hcVillageInfo',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. //右侧详情农房农地列表
  27. export function hcBottomSearch(query) {
  28. return request({
  29. url: '/bigData/hc/hcBottomSearch',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. //上传附件图片
  35. export function commonUpload(query) {
  36. return request({
  37. url: '/common/upload',
  38. method: 'post',
  39. data: query
  40. })
  41. }
  42. //农房新增
  43. export function houseAdd(query) {
  44. return request({
  45. url: '/geo/house/add',
  46. method: 'post',
  47. data: query
  48. })
  49. }
  50. //农房编辑
  51. export function houseEdit(query) {
  52. return request({
  53. url: '/geo/house/edit',
  54. method: 'post',
  55. data: query
  56. })
  57. }
  58. //农地新增
  59. export function landAdd(query) {
  60. return request({
  61. url: '/geo/land/add',
  62. method: 'post',
  63. data: query
  64. })
  65. }
  66. //农地编辑
  67. export function landEdit(query) {
  68. return request({
  69. url: '/geo/land/edit',
  70. method: 'post',
  71. data: query
  72. })
  73. }
  74. //获取区、镇、村地区
  75. export function treeselectByUser(query) {
  76. return request({
  77. url: '/system/dept/treeselectByUser',
  78. method: 'get',
  79. params: query
  80. })
  81. }
  82. //获取村的经纬度
  83. export function deptGetId(id) {
  84. return request({
  85. url: '/system/dept/get/' + id,
  86. method: 'get',
  87. })
  88. }
  89. //查询农地地信息
  90. export function getLand(id) {
  91. return request({
  92. url: '/geo/land/get/' + id,
  93. method: 'get',
  94. })
  95. }
  96. //查询农房信息
  97. export function getHouse(id) {
  98. return request({
  99. url: '/geo/house/get/' + id,
  100. method: 'get',
  101. })
  102. }
  103. //获取接口地图地址
  104. export function currentLocation(query) {
  105. return request({
  106. url: '/bigData/common/currentLocation',
  107. method: 'get',
  108. params: query
  109. })
  110. }
  111. //修改坐标数据同步
  112. export function coordinatesUpdateGeo(parentCode) {
  113. return request({
  114. url: '/geo/geo/latAndLon/'+parentCode,
  115. method: 'get'
  116. })
  117. }
  118. //删除农房信息
  119. export function houseRemove(id) {
  120. return request({
  121. url: '/geo/house/remove/' + id,
  122. method: 'get',
  123. })
  124. }
  125. //删除农地信息
  126. export function landRemove(id) {
  127. return request({
  128. url: '/geo/land/remove/' + id,
  129. method: 'get',
  130. })
  131. }