index.js 826 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/utils/request'
  2. // 查询井盖信息列表
  3. export function getManholeDataAll(query) {
  4. return request({
  5. url: '/base/devices/getAll',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 新增井盖
  11. export function addSave(data) {
  12. return request({
  13. url: '/base/devices/save',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 井盖修改
  19. export function alterManhole(data) {
  20. return request({
  21. url: 'base/devices/update',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 查询井盖翻转报警信息列表
  27. export function getflipalarmDataAll(arr) {
  28. const json = JSON.stringify(arr.query);
  29. return request({
  30. url: '/manholeData/findByPage',
  31. method: 'get',
  32. params: {
  33. conditionJson:encodeURIComponent(json),
  34. pageNum:arr.pageNum,
  35. pageSize:arr.pageSize
  36. }
  37. })
  38. }