windturbinestatusdata.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 getStation() {
  19. return request({
  20. url: '/electricfield/all',
  21. method: 'get'
  22. })
  23. }
  24. export function getAllWindturbineInfo(obj) {
  25. return request({
  26. url: '/windturbineinfo/findByStationCode',
  27. method: 'post',
  28. data: obj
  29. })
  30. }
  31. export function getByStationCodeAndEquipmentIdAndTimeBetween(obj) {
  32. return request({
  33. url: '/windturbinestatusdata/getByStationCodeAndEquipmentIdAndTimeBetween',
  34. method: 'post',
  35. data: obj
  36. })
  37. }
  38. export function fetchList(query) {
  39. return request({
  40. url: '/windturbinestatusdata/page',
  41. method: 'get',
  42. params: query
  43. })
  44. }
  45. export function addObj(obj) {
  46. return request({
  47. url: '/windturbinestatusdata',
  48. method: 'post',
  49. data: obj
  50. })
  51. }
  52. export function getObj(id) {
  53. return request({
  54. url: '/windturbinestatusdata/' + id,
  55. method: 'get'
  56. })
  57. }
  58. export function delObj(id) {
  59. return request({
  60. url: '/windturbinestatusdata/' + id,
  61. method: 'delete'
  62. })
  63. }
  64. export function putObj(obj) {
  65. return request({
  66. url: '/windturbinestatusdata',
  67. method: 'put',
  68. data: obj
  69. })
  70. }