index.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. import request from "../../../tools/request";
  2. //获取驾驶舱基础信息
  3. const findBasicDataInfo = (data) => {
  4. return request({
  5. baseURL: process.env.VUE_APP_Matrix,
  6. url: `genreset/findBasicDataInfo?id=${data.id}`,
  7. method: "get",
  8. });
  9. };
  10. //获取驾驶舱功率曲线图和电量柱状图信息
  11. const findPowerInfo = (data) => {
  12. return request({
  13. baseURL: process.env.VUE_APP_Matrix,
  14. url: `genreset/findPowerInfo?id=${data.id}`,
  15. method: "get",
  16. });
  17. };
  18. const findInfo = (subUrl, data) => {
  19. return request({
  20. baseURL: process.env.VUE_APP_Matrix,
  21. url: `${subUrl}?id=${data.id}`,
  22. method: "get",
  23. });
  24. };
  25. const findInfos = (subUrl, data) => {
  26. return request({
  27. baseURL: process.env.VUE_APP_Matrix,
  28. url: `${subUrl}?id=${data.id}&targetName=${data.targetName}`,
  29. method: "get",
  30. });
  31. };
  32. //预测风速电量
  33. const forecastwindspeedInfo = (data) => {
  34. return request({
  35. baseURL: process.env.VUE_APP_Matrix,
  36. url: `genreset/getForecastwindspeedInfo?wpId=${data.wpId}`,
  37. method: "get",
  38. });
  39. };
  40. //未来5天天气预报功能
  41. const weatherRealDay5Info = (data) => {
  42. return request({
  43. baseURL: process.env.VUE_APP_Matrix,
  44. url: `genreset/getWeatherRealDay5Info?wpId=${data.wpId}`,
  45. method: "get",
  46. });
  47. };
  48. //基础矩阵
  49. const matrixPush = (showLoading) => {
  50. return request({
  51. showLoading,
  52. baseURL: process.env.VUE_APP_Matrix,
  53. url: `matrix/matrixPush`,
  54. method: "get",
  55. });
  56. };
  57. //全风场简单矩阵
  58. const findSimpleMatrixAll = (data) => {
  59. return request({
  60. baseURL: process.env.VUE_APP_Matrix,
  61. url: `matrix/findSimpleMatrixAll?wpId=${data.wpId}`,
  62. method: "get",
  63. });
  64. };
  65. //风机信息
  66. const findWtInfo = (data) => {
  67. return request({
  68. baseURL: process.env.VUE_APP_Matrix,
  69. url: `monitorwt/findWtInfo?wtId=${data.wtId}`,
  70. method: "get",
  71. });
  72. };
  73. //明细矩阵
  74. const matrixDetialPush = (showLoading) => {
  75. return request({
  76. showLoading,
  77. baseURL: process.env.VUE_APP_Matrix,
  78. url: `matrix/matrixDetialPush`,
  79. method: "get",
  80. });
  81. };
  82. //
  83. const findWtWarnInfo = (data) => {
  84. return request({
  85. baseURL: process.env.VUE_APP_Matrix,
  86. url: `monitorwt/findWtWarnInfo?wtId=${data.wtId}`,
  87. method: "get",
  88. });
  89. };
  90. //欠发矩阵
  91. const matrixQfPush = (showLoading) => {
  92. return request({
  93. showLoading,
  94. baseURL: process.env.VUE_APP_Matrix,
  95. url: `matrix/matrixQfPush`,
  96. method: "get",
  97. });
  98. };
  99. //
  100. const monitor = (showLoading) => {
  101. return request({
  102. showLoading,
  103. baseURL: process.env.VUE_APP_Matrix,
  104. url: `monitor/monitor`,
  105. method: "get",
  106. });
  107. };
  108. //获取AGC信息
  109. const getAgcValues = (showLoading) => {
  110. return request({
  111. showLoading,
  112. baseURL: process.env.VUE_APP_Matrix,
  113. url: `genreset/getAgcValues`,
  114. method: "get",
  115. });
  116. };
  117. const windfarmAllAjax = () => {
  118. return request({
  119. baseURL: process.env.VUE_APP_Matrix,
  120. url: `powercompare/windfarmAllAjax`,
  121. method: "get",
  122. });
  123. };
  124. //风机信息列表
  125. const findWtInfoList = (showLoading,data) => {
  126. return request({
  127. showLoading,
  128. baseURL: process.env.VUE_APP_Matrix,
  129. url: `monitorwt/findWtInfoList?wpId=${data.wpId}`,
  130. method: "get",
  131. });
  132. };
  133. //测风塔
  134. const monitorFindCftInfo = (data) => {
  135. return request({
  136. baseURL: process.env.VUE_APP_Matrix,
  137. url: `monitor/findCftInfo?wpId=${data.wpId}`,
  138. method: "get",
  139. });
  140. };
  141. const powercompareWindfarmAllAjax = (data) => {
  142. return request({
  143. baseURL: process.env.VUE_APP_Matrix,
  144. url: `powercompare/windfarmAllAjax`,
  145. method: "get",
  146. });
  147. };
  148. const genresetFindPowerInfo = (data) => {
  149. return request({
  150. baseURL: process.env.VUE_APP_Matrix,
  151. url: `genreset/findPowerInfo?id=${data.id}`,
  152. method: "get",
  153. });
  154. };
  155. //风场矩阵
  156. const matrixMatrixByWpIdPush = (data) => {
  157. return request({
  158. baseURL: process.env.VUE_APP_Matrix,
  159. url: `matrix/matrixByWpIdPush?wpId=${data.wpId}`,
  160. method: "get",
  161. });
  162. };
  163. //总样貌
  164. const monitorFindGeneralAppearance = (data) => {
  165. return request({
  166. baseURL: process.env.VUE_APP_Matrix,
  167. url: `monitor/findGeneralAppearance?wpId=${data.wpId}`,
  168. method: "get",
  169. });
  170. };
  171. export default {
  172. findBasicDataInfo,
  173. findPowerInfo,
  174. findInfo,
  175. findInfos,
  176. forecastwindspeedInfo,
  177. weatherRealDay5Info,
  178. matrixPush,
  179. findSimpleMatrixAll,
  180. findWtInfo,
  181. matrixDetialPush,
  182. findWtWarnInfo,
  183. matrixQfPush,
  184. monitor,
  185. getAgcValues,
  186. windfarmAllAjax,
  187. findWtInfoList,
  188. monitorFindCftInfo,
  189. powercompareWindfarmAllAjax,
  190. genresetFindPowerInfo,
  191. matrixMatrixByWpIdPush,
  192. monitorFindGeneralAppearance,
  193. }