1
0

monthlyPerformanceAnalysis.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. import request from "@/tools/request";
  2. // 获取公司列表
  3. export function getApicompanyslist(params) {
  4. return request({
  5. baseURL: process.env.VUE_APP_API,
  6. url: "/benchmarking/companys",
  7. method: "GET",
  8. });
  9. }
  10. // 获取场站列表
  11. export function getApiwpByCplistlist(params) {
  12. return request({
  13. baseURL: process.env.VUE_APP_API,
  14. url: `/benchmarking/wpByCplist?companyids=${params.companyid}&type=${params.type}`,
  15. method: "GET",
  16. });
  17. }
  18. // 获取期次列表
  19. export function getApipjByWplist(params) {
  20. return request({
  21. baseURL: process.env.VUE_APP_API,
  22. url: `/benchmarking/pjByWplist?wpids=${params.wpids}`,
  23. method: "GET",
  24. });
  25. }
  26. // 获取线路列表
  27. export function getApilnByPjlist(params) {
  28. return request({
  29. baseURL: process.env.VUE_APP_API,
  30. url: `/benchmarking/lnByPjlist?pjids=${params.pjids}`,
  31. method: "GET",
  32. });
  33. }
  34. // 获取风机列表
  35. export function getApiequipmentList(params) {
  36. return request({
  37. baseURL: process.env.VUE_APP_API,
  38. url: `/pro-basic-equipment/equipment-list?companyId=${params.companyId}&windpowerstationIds=${params.wpIds}&projectIds=${params.projectIds}&lineIds=${params.lineIds}&type=${params.type}`,
  39. method: "GET",
  40. });
  41. }
  42. // 通过场站获取风机列表
  43. export function getApiequipmentListByWp(params) {
  44. return request({
  45. baseURL: process.env.VUE_APP_API,
  46. url: `/pro-basic-equipment/equipmentsByWpid?wpid=${params.wpid}`,
  47. method: "GET",
  48. });
  49. }
  50. // 通过升压站获取风机列表
  51. export function getApiWeatherstation() {
  52. return request({
  53. baseURL: process.env.VUE_APP_API,
  54. url: `weatherstation/queryall`,
  55. method: "GET",
  56. });
  57. }
  58. // ------------------------------------------------------单机性能分析---------------------------------------------------------------------
  59. // 获取单机性能总览------列表
  60. export function getApiwindturbinegoodnesslist(params) {
  61. return request({
  62. baseURL: process.env.VUE_APP_API,
  63. url: "/goodness/windturbinegoodness",
  64. method: "POST",
  65. headers: {
  66. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  67. },
  68. params,
  69. });
  70. }
  71. // 获取单机性能总览------光伏列表
  72. export function getApiwindturbinegoodnesslistGf(params) {
  73. return request({
  74. baseURL: process.env.VUE_APP_API,
  75. url: `/goodness/pvgoodness?wpid=${params.wpId}&recorddate=${params.recorddate}&companys=${params.cmId}&target=''&sort=''`,
  76. method: "GET",
  77. });
  78. }
  79. // 获取单机性能总览------历史列表
  80. export function getApihistorywindturbinegoodnesslist(params) {
  81. return request({
  82. baseURL: process.env.VUE_APP_API,
  83. url: "/goodness/goodhistorylist",
  84. method: "POST",
  85. headers: {
  86. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  87. },
  88. params,
  89. });
  90. }
  91. // 获取单机性能总览------光伏历史列表
  92. export function getApihistorywindturbinegoodnesslistGf(params) {
  93. return request({
  94. baseURL: process.env.VUE_APP_API,
  95. url: `/goodness/pvgoodnesshis?wpid=${params.wpId}&beginDate=${params.beginDate}&wtid=${params.wtId}&target=''&sort=''&endDate=${params.endDate}`,
  96. method: "GET",
  97. });
  98. }
  99. // 获取单机性能详情------查询功率曲线数据信息
  100. export function getApifindWtRealPowerChar(params) {
  101. return request({
  102. baseURL: process.env.VUE_APP_API,
  103. url: `/goodness/findWtRealPowerChar?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  104. method: "GET",
  105. });
  106. }
  107. // 获取单机性能详情------获得曲线区间区分功能数据
  108. export function getApigetplotBands(params) {
  109. return request({
  110. baseURL: process.env.VUE_APP_API,
  111. url: `/goodness/getplotBands?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  112. method: "GET",
  113. });
  114. }
  115. // 获取单机性能详情------获取区域弹出列表信息
  116. export function getApiplotBandAjax(params) {
  117. return request({
  118. baseURL: process.env.VUE_APP_API,
  119. url: `/goodness/plotBandAjax?beginDate=${params.beginDate}&endDate=${params.endDate}&wtId=${params.wtId}`,
  120. method: "GET",
  121. });
  122. }
  123. // 获取单机性能详情------获取风场风机玫瑰图
  124. export function getApiComMGTWP(params) {
  125. return request({
  126. baseURL: process.env.VUE_APP_API,
  127. url: `${params.url}?recorddate=${params.recorddate}&wpId=${params.wpId}`,
  128. method: "GET",
  129. });
  130. }
  131. export function getApiComMGTWT(params) {
  132. return request({
  133. baseURL: process.env.VUE_APP_API,
  134. url: `${params.url}?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  135. method: "GET",
  136. });
  137. }
  138. export function getApiComPie(params) {
  139. return request({
  140. baseURL: process.env.VUE_APP_API,
  141. url: `${params.url}?recorddate=${params.recorddate}&wtId=${params.wtId}&type=${params.type}`,
  142. method: "GET",
  143. });
  144. }
  145. // 获取单机性能详情------获取24小时功率曲线
  146. export function getApifindRealPowerCharBy24(params) {
  147. return request({
  148. baseURL: process.env.VUE_APP_API,
  149. url: `/goodness/findRealPowerCharBy24?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  150. method: "GET",
  151. });
  152. }
  153. // 获取单机性能详情------单台风机当日报警记录
  154. export function getApibjjllist(params) {
  155. return request({
  156. baseURL: process.env.VUE_APP_API,
  157. url: "/goodness/bjjllist",
  158. method: "POST",
  159. headers: {
  160. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  161. },
  162. params,
  163. });
  164. }
  165. // 获取单机性能详情------单台风机当日故障停机记录
  166. export function getApigzjllist(params) {
  167. return request({
  168. baseURL: process.env.VUE_APP_API,
  169. url: "/goodness/gzjllist",
  170. method: "POST",
  171. headers: {
  172. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  173. },
  174. params,
  175. });
  176. }
  177. // 获取单机性能详情------单台风机当日限电记录
  178. export function getApixdjllist(params) {
  179. return request({
  180. baseURL: process.env.VUE_APP_API,
  181. url: "/goodness/xdjllist",
  182. method: "POST",
  183. headers: {
  184. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  185. },
  186. params,
  187. });
  188. }
  189. // 获取单机性能详情------查询明细页面显示信息
  190. export function getApiwadAjax(params) {
  191. return request({
  192. baseURL: process.env.VUE_APP_API,
  193. url: `/goodness/wadAjax?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  194. method: "GET",
  195. });
  196. }
  197. // 获取单机性能详情------单台风机当月报警排行
  198. export function getApibjphlist(params) {
  199. return request({
  200. baseURL: process.env.VUE_APP_API,
  201. url: "/goodness/bjphlist",
  202. method: "POST",
  203. headers: {
  204. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  205. },
  206. params,
  207. });
  208. }
  209. // 获取单机性能详情------获取明细页面功率曲线
  210. export function getApiglchat(params) {
  211. return request({
  212. baseURL: process.env.VUE_APP_API,
  213. url: `/goodness/glchat?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  214. method: "GET",
  215. });
  216. }
  217. // 获取单机性能详情------获取风机风资源
  218. export function getApifjfzy(params) {
  219. return request({
  220. baseURL: process.env.VUE_APP_API,
  221. url: `/goodness/fjfzy?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  222. method: "GET",
  223. });
  224. }
  225. // ------------------------------------------------------单机月度分析---------------------------------------------------------------------
  226. // 获取单机月度分析数据------列表
  227. export function getApisingleanalysisMainlist(params) {
  228. return request({
  229. baseURL: process.env.VUE_APP_API,
  230. url: "/singleanalysis/singleanalysisMain",
  231. method: "POST",
  232. headers: {
  233. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  234. },
  235. params,
  236. });
  237. }
  238. // 获取单机月度分析数据------查询单机性能分析子页面
  239. export function getApisingleanalysisSub(params) {
  240. return request({
  241. baseURL: process.env.VUE_APP_API,
  242. url: "/singleanalysis/singleanalysisSub",
  243. method: "GET",
  244. params,
  245. });
  246. }
  247. // 单机信息总览图表接口(3个) 发电量和风速、五项损失、静风频率和待机时间
  248. export function getApisingleanalysisChart(params) {
  249. return request({
  250. baseURL: process.env.VUE_APP_API,
  251. url: "/singleanalysis/singleanalysisChart",
  252. method: "GET",
  253. params,
  254. });
  255. }
  256. // ------------------------------------------------------切入切出分析---------------------------------------------------------------------
  257. // 获取切入切出管理------列表
  258. export function getApioutputSpeedlist(params) {
  259. return request({
  260. baseURL: process.env.VUE_APP_API,
  261. url: "/outputspeed/outputSpeedlist",
  262. method: "POST",
  263. headers: {
  264. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  265. },
  266. params,
  267. });
  268. }
  269. // 获取切入切出管理------历史列表
  270. export function getApioutputSpeedhistorylist(params) {
  271. return request({
  272. baseURL: process.env.VUE_APP_API,
  273. url: "/outputspeed/outputspeedhistorylist",
  274. method: "POST",
  275. headers: {
  276. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  277. },
  278. params,
  279. });
  280. }
  281. // ------------------------------------------------------------单机对标------------------------------------------------------------------------
  282. // 单机横向对比列表
  283. export function getApiequipmentPerformaCompare(params) {
  284. return request({
  285. baseURL: process.env.VUE_APP_API,
  286. url: `/performa-compare/equipment-performa-compare?type=${params.type}&dateType=${params.dateType}&windturbineIds=${params.wtIds}&date=${params.date}`,
  287. method: "GET",
  288. });
  289. }
  290. // 单机横向对比echarts
  291. export function getApicurveFitting(params) {
  292. return request({
  293. baseURL: process.env.VUE_APP_API,
  294. url: `/performa-compare/curve-fitting?windturbineIds=${params.wtIds}`,
  295. method: "GET",
  296. });
  297. }
  298. // ------------------------------------------------------------等级评估------------------------------------------------------------------------
  299. export function getApiequipmentinfoDayList(params) {
  300. return request({
  301. baseURL: process.env.VUE_APP_API,
  302. url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-list?companyId=${params.companyId}&date=${params.date}&staType=${params.staType}&types=${params.types}&type=${params.type}&windpowerstationId=${params.wpId}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
  303. method: "GET",
  304. });
  305. }
  306. export function getApiequipmentinfoDayHistoryList(params) {
  307. return request({
  308. baseURL: process.env.VUE_APP_API,
  309. url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-history-list?beginDate=${params.beginDate}&endDate=${params.endDate}&types=${params.types}&windturbineId=${params.wtId}`,
  310. method: "GET",
  311. });
  312. }
  313. export function getApiequipmentinfoDayCompareList(params) {
  314. return request({
  315. baseURL: process.env.VUE_APP_API,
  316. url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-compare-list?ids=${params.oid}&ids=${params.tid}&types=${params.types}`,
  317. // url: '/pro-econ-equipment-info-day-top/equipmentinfo-day-compare-list?ids=1595968732880998402&ids=1595968732939718671&types=1',
  318. method: "GET",
  319. });
  320. }
  321. // ------------------------------------------------------------功率曲线拟合------------------------------------------------------------------------
  322. export function getApiPerformancecurvefitting(params) {
  323. return request({
  324. baseURL: process.env.VUE_APP_API,
  325. url: `/performance/curvefitting?dateType=${params.dateType}&type=${params.type}&windturbineIds=${params.wtId}`,
  326. method: "GET",
  327. });
  328. }
  329. // ------------------------------------------------------------综合分析------------------------------------------------------------------------
  330. export function getApimaintoplist(params) {
  331. return request({
  332. baseURL: process.env.VUE_APP_API,
  333. url: `/specific/maintoplist?companys=${params.companys}&type=${params.type}&month=${params.month}`,
  334. method: "GET",
  335. });
  336. }
  337. export function getApimaincenterlist(params) {
  338. return request({
  339. baseURL: process.env.VUE_APP_API,
  340. url: `/specific/maincenterlist?companys=${params.companys}&type=${params.type}&month=${params.month}`,
  341. method: "GET",
  342. });
  343. }
  344. //查询电量分析
  345. export function getMonthElectricAnalyse(params) {
  346. return request({
  347. baseURL: process.env.VUE_APP_API,
  348. url: `/electricity/statistics?wpId=${params.wpId}&timetype=month`,
  349. method: "GET",
  350. });
  351. }
  352. //查询逆变器电量分析
  353. export function getMonthElectricAnalyseGf(params) {
  354. return request({
  355. baseURL: process.env.VUE_APP_API,
  356. url: `/electricity/coulometric?wpId=${params.wpId}`,
  357. method: "GET",
  358. });
  359. }