Newer
Older
KaiFengPC / src / api / spongePerformance / surfaceWater.js
@zhangdeliang zhangdeliang on 25 Dec 4 KB update
  1. import request from '@/utils/request';
  2. // 获取列表
  3. export function waterQualityUserId(data) {
  4. return request({
  5. url: `/sponge/waterQualitySampleInfo/list`,
  6. method: 'post',
  7. data: data,
  8. });
  9. }
  10. //考核水体下拉框数据
  11. export function riverInfoWater(data) {
  12. return request({
  13. url: `/sponge/riverInfo/list`,
  14. method: 'post',
  15. data: data,
  16. });
  17. }
  18. // 地水质采样信息表头
  19. export function waterQualityinformation(query) {
  20. return request({
  21. url: `/sponge/waterQualitySampleInfo/head`,
  22. method: 'get',
  23. params: query,
  24. });
  25. }
  26.  
  27. //新增
  28. export function waterQualityAdd(data) {
  29. return request({
  30. url: `/sponge/waterQualitySampleInfo/add`,
  31. method: 'post',
  32. data: data,
  33. });
  34. }
  35.  
  36. //修改
  37. export const waterQualityEdit = data => {
  38. return request({
  39. url: `/sponge/waterQualitySampleInfo/edit`,
  40. method: 'put',
  41. data,
  42. });
  43. };
  44.  
  45. //删除
  46. export function waterQualityDelete(ids) {
  47. return request({
  48. url: `/sponge/waterQualitySampleInfo/${ids}`,
  49. method: 'delete',
  50. });
  51. }
  52.  
  53. //地表水体新增动态配置
  54. export function sampleConfigconfiguration(data) {
  55. return request({
  56. url: `/sponge/sampleConfig/list`,
  57. method: 'post',
  58. data: data,
  59. });
  60. }
  61. //
  62. export function waterQualitySampleInfopaging(query) {
  63. return request({
  64. url: `/sponge/waterQualitySampleInfo/page`,
  65. method: 'get',
  66. params: query,
  67. });
  68. }
  69.  
  70. // 获取水质目标列表
  71. export function waterQualityConfigUserId(data) {
  72. return request({
  73. url: `/sponge/waterQualityConfig/list`,
  74. method: 'post',
  75. data: data,
  76. });
  77. }
  78.  
  79. //获取水质目标
  80. export function waterQualityfigpaging(data) {
  81. return request({
  82. url: `/sponge/waterQualityConfig/page`,
  83. method: 'post',
  84. data: data,
  85. });
  86. }
  87.  
  88. //配置水质目标新增
  89. export function waterQualityConfigAdd(data) {
  90. return request({
  91. url: `/sponge/waterQualityConfig/add`,
  92. method: 'post',
  93. data: data,
  94. });
  95. }
  96.  
  97. //配置水质目标删除 /waterQualityConfig/edit
  98. export function waterQualityConfigDelete(ids) {
  99. return request({
  100. url: `/sponge/waterQualityConfig/${ids}`,
  101. method: 'delete',
  102. });
  103. }
  104.  
  105. //配置水质目标修改 /blackOdorSampleInfo/list
  106. export const waterQualityConfigEdit = data => {
  107. return request({
  108. url: `/sponge/waterQualityConfig/edit`,
  109. method: 'put',
  110. data,
  111. });
  112. };
  113.  
  114. // 黑臭采样信息列表 /blackOdorSampleInfo/add
  115. export function blackOdorUserId(data) {
  116. return request({
  117. url: `/sponge/blackOdorSampleInfo/list`,
  118. method: 'post',
  119. data: data,
  120. });
  121. }
  122.  
  123. // 黑臭采样信息表头
  124. export function blackOdorinformation(query) {
  125. return request({
  126. url: `/sponge/blackOdorSampleInfo/head`,
  127. method: 'get',
  128. params: query,
  129. });
  130. }
  131.  
  132. //黑臭采样信息新增
  133. export function blackOdorAdd(data) {
  134. return request({
  135. url: `/sponge/blackOdorSampleInfo/add`,
  136. method: 'post',
  137. data: data,
  138. });
  139. }
  140. //黑臭采样信息修改
  141. export const blackOdorEdit = data => {
  142. return request({
  143. url: `/sponge/blackOdorSampleInfo/edit`,
  144. method: 'put',
  145. data,
  146. });
  147. };
  148. //黑臭采样信息删除
  149. export function blackOdorDelete(ids) {
  150. return request({
  151. url: `/sponge/blackOdorSampleInfo/${ids}`,
  152. method: 'delete',
  153. });
  154. }
  155.  
  156. //黑臭采样信息
  157. export function blackOdorpaging(query) {
  158. return request({
  159. url: `/sponge/blackOdorSampleInfo/page`,
  160. method: 'get',
  161. params: query,
  162. });
  163. }
  164.  
  165. //黑臭采样照片
  166. export function blackOdorpagingriverInfo(data) {
  167. return request({
  168. url: `/sponge/riverInfo/list`,
  169. method: 'post',
  170. data: data,
  171. });
  172. }
  173.  
  174. // 人工采样土壤 搜索列表
  175. export function soilSamplePage(query) {
  176. return request({
  177. url: '/sponge/soilSample/page',
  178. method: 'get',
  179. params: query,
  180. });
  181. }
  182. // 人工采样土壤 新增
  183. export function soilSampleAdd(data) {
  184. return request({
  185. url: '/sponge/soilSample/add',
  186. method: 'post',
  187. data: data,
  188. });
  189. }
  190. // 人工采样土壤 修改
  191. export function soilSampleEdit(data) {
  192. return request({
  193. url: '/sponge/soilSample/edit',
  194. method: 'put',
  195. data: data,
  196. });
  197. }
  198. // 人工采样土壤 删除
  199. export function soilSampleDel(id) {
  200. return request({
  201. url: '/sponge/soilSample/' + id,
  202. method: 'delete',
  203. });
  204. }
  205. // 人工采样土壤 详情
  206. export function soilSampleDetail(id) {
  207. return request({
  208. url: '/sponge/soilSample/' + id,
  209. method: 'get',
  210. });
  211. }