Newer
Older
KaiFengPC / src / api / dataAnalysis / rtuSiteInfo.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
  1. import request from "@/utils/request";
  2.  
  3. // 查询RTU站点分页
  4. export function pagertuSiteInfo(query) {
  5. return request({
  6. url: "/business/rtuSiteInfo/page",
  7. method: "get",
  8. params: query,
  9. });
  10. }
  11.  
  12. // 查询RTU站点列表
  13. export function listrtuSiteInfo(query) {
  14. return request({
  15. url: "/business/rtuSiteInfo/list",
  16. method: "get",
  17. params: query,
  18. });
  19. }
  20.  
  21. // 查询RTU站点详细
  22. export function getrtuSiteInfo(id) {
  23. return request({
  24. url: "/business/rtuSiteInfo/" + id,
  25. method: "get",
  26. });
  27. }
  28.  
  29. // 新增RTU站点
  30. export function addrtuSiteInfo(data) {
  31. return request({
  32. url: "/business/rtuSiteInfo/add",
  33. method: "post",
  34. data: data,
  35. });
  36. }
  37.  
  38. // 修改RTU站点
  39. export function updatertuSiteInfo(data) {
  40. return request({
  41. url: "/business/rtuSiteInfo/edit",
  42. method: "put",
  43. data: data,
  44. });
  45. }
  46.  
  47. // 删除RTU站点
  48. export function delrtuSiteInfo(id) {
  49. return request({
  50. url: "/business/rtuSiteInfo/" + id,
  51. method: "delete",
  52. });
  53. }
  54. //获取每种监测类型对应的站点类型和建设方式对应的数量
  55. export function getSiteInfoCount() {
  56. return request({
  57. url: "/business/rtuSiteInfo/getSiteInfoCount",
  58. method: "get",
  59. });
  60. }