forecastpowerultrashortterm.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 getForecastManufactor(query) {
  19. return request({
  20. url: '/forecastmanufactor/page',
  21. method: 'get',
  22. data: query
  23. })
  24. }
  25. export function getStation() {
  26. return request({
  27. url: '/electricfield/all',
  28. method: 'get'
  29. })
  30. }
  31. export function getCapacity(obj) {
  32. return request({
  33. url: '/electricfield/getByStationCode',
  34. method: 'post',
  35. data: obj
  36. })
  37. }
  38. export function getUltraShortDataHisPage(query) {
  39. return request({
  40. url: '/forecastpowerultrashorttermhis/page',
  41. method: 'get',
  42. params: query
  43. })
  44. }
  45. export function getUltraShortDataHis(obj) {
  46. return request({
  47. url: '/forecastpowerultrashorttermhis/getUltraShortDataHis',
  48. method: 'post',
  49. data: obj
  50. })
  51. }
  52. export function getShortData(obj) {
  53. return request({
  54. url: '/forecastpowershortterm/getShortData',
  55. method: 'post',
  56. data: obj
  57. })
  58. }
  59. export function getPowerStationStatusData(obj) {
  60. return request({
  61. url: '/powerstationstatusdata/getPowerStationStatusData',
  62. method: 'post',
  63. data: obj
  64. })
  65. }
  66. export function getCompositeData(obj) {
  67. return request({
  68. url: '/powerstationstatusdata/getCompositeData',
  69. method: 'post',
  70. data: obj
  71. })
  72. }
  73. export function getTimeStamp(obj) {
  74. return request({
  75. url: '/powerstationstatusdata/getTimeStamp',
  76. method: 'post',
  77. data: obj
  78. })
  79. }
  80. export function addObj(obj) {
  81. return request({
  82. url: '/forecastpowerultrashortterm',
  83. method: 'post',
  84. data: obj
  85. })
  86. }
  87. export function getObj(id) {
  88. return request({
  89. url: '/forecastpowerultrashortterm/' + id,
  90. method: 'get'
  91. })
  92. }
  93. export function delObj(id) {
  94. return request({
  95. url: '/forecastpowerultrashortterm/' + id,
  96. method: 'delete'
  97. })
  98. }
  99. export function putObj(obj) {
  100. return request({
  101. url: '/forecastpowerultrashortterm',
  102. method: 'put',
  103. data: obj
  104. })
  105. }
  106. export function getCenterData(obj) {
  107. return request({
  108. url: '/powerstationstatusdata/getCenterData',
  109. method: 'post',
  110. data: obj
  111. })
  112. }