tunnelgatherdatapoint.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. import request from '@/router/axios'
  18. export function fetchList(query) {
  19. return request({
  20. url: '/da/tunnelgatherdatapoint/page',
  21. method: 'get',
  22. params: query
  23. })
  24. }
  25. export function addObj(obj) {
  26. return request({
  27. url: '/da/tunnelgatherdatapoint',
  28. method: 'post',
  29. data: obj
  30. })
  31. }
  32. export function getObj(id) {
  33. return request({
  34. url: '/da/tunnelgatherdatapoint/' + id,
  35. method: 'get'
  36. })
  37. }
  38. export function delObj(id) {
  39. return request({
  40. url: '/da/tunnelgatherdatapoint/' + id,
  41. method: 'delete'
  42. })
  43. }
  44. export function putObj(obj) {
  45. return request({
  46. url: '/da/tunnelgatherdatapoint',
  47. method: 'put',
  48. data: obj
  49. })
  50. }
  51. export function getEquipmentInStation(obj) {
  52. return request({
  53. url: '/da/tunnelgatherdatapoint/getEquipmentInStation',
  54. method: 'post',
  55. data: obj
  56. })
  57. }
  58. export function getEquipmentByStationCodeAndTunnelId(query) {
  59. return request({
  60. url: '/da/tunnelgatherdatapoint/getEquipmentByStationCodeAndTunnelId',
  61. method: 'get',
  62. params: query
  63. })
  64. }
  65. export function getEquipmentByStationCode(query) {
  66. return request({
  67. url: '/da/tunnelgatherdatapoint/getEquipmentByStationCode',
  68. method: 'get',
  69. params: query
  70. })
  71. }
  72. export function getAllEquipment() {
  73. return request({
  74. url: '/da/tunnelgatherdatapoint/getAllEquipment',
  75. method: 'get'
  76. })
  77. }