monthlyPerformanceAnalysis.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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. params,
  86. });
  87. }
  88. // 获取单机性能总览------光伏历史列表
  89. export function getApihistorywindturbinegoodnesslistGf(params) {
  90. return request({
  91. baseURL: process.env.VUE_APP_API,
  92. url: `/goodness/pvgoodnesshis?wpid=${params.wpId}&beginDate=${params.beginDate}&wtid=${params.wtId}&target=''&sort=''&endDate=${params.endDate}`,
  93. method: "GET",
  94. });
  95. }
  96. // 获取单机性能详情------查询功率曲线数据信息
  97. export function getApifindWtRealPowerChar(params) {
  98. return request({
  99. baseURL: process.env.VUE_APP_API,
  100. url: `/goodness/findWtRealPowerChar?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  101. method: "GET",
  102. });
  103. }
  104. // 获取单机性能详情------获得曲线区间区分功能数据
  105. export function getApigetplotBands(params) {
  106. return request({
  107. baseURL: process.env.VUE_APP_API,
  108. url: `/goodness/getplotBands?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  109. method: "GET",
  110. });
  111. }
  112. // 获取单机性能详情------获取区域弹出列表信息
  113. export function getApiplotBandAjax(params) {
  114. return request({
  115. baseURL: process.env.VUE_APP_API,
  116. url: `/goodness/plotBandAjax?beginDate=${params.beginDate}&endDate=${params.endDate}&wtId=${params.wtId}`,
  117. method: "GET",
  118. });
  119. }
  120. // 获取单机性能详情------获取风场风机玫瑰图
  121. export function getApiComMGTWP(params) {
  122. return request({
  123. baseURL: process.env.VUE_APP_API,
  124. url: `${params.url}?recorddate=${params.recorddate}&wpId=${params.wpId}`,
  125. method: "GET",
  126. });
  127. }
  128. export function getApiComMGTWT(params) {
  129. return request({
  130. baseURL: process.env.VUE_APP_API,
  131. url: `${params.url}?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  132. method: "GET",
  133. });
  134. }
  135. export function getApiComPie(params) {
  136. return request({
  137. baseURL: process.env.VUE_APP_API,
  138. url: `${params.url}?recorddate=${params.recorddate}&wtId=${params.wtId}&type=${params.type}`,
  139. method: "GET",
  140. });
  141. }
  142. // 获取单机性能详情------获取24小时功率曲线
  143. export function getApifindRealPowerCharBy24(params) {
  144. return request({
  145. baseURL: process.env.VUE_APP_API,
  146. url: `/goodness/findRealPowerCharBy24?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  147. method: "GET",
  148. });
  149. }
  150. // 获取单机性能详情------单台风机当日报警记录
  151. export function getApibjjllist(params) {
  152. return request({
  153. baseURL: process.env.VUE_APP_API,
  154. url: "/goodness/bjjllist",
  155. method: "POST",
  156. headers: {
  157. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  158. },
  159. params,
  160. });
  161. }
  162. // 获取单机性能详情------单台风机当日故障停机记录
  163. export function getApigzjllist(params) {
  164. return request({
  165. baseURL: process.env.VUE_APP_API,
  166. url: "/goodness/gzjllist",
  167. method: "POST",
  168. headers: {
  169. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  170. },
  171. params,
  172. });
  173. }
  174. // 获取单机性能详情------单台风机当日限电记录
  175. export function getApixdjllist(params) {
  176. return request({
  177. baseURL: process.env.VUE_APP_API,
  178. url: "/goodness/xdjllist",
  179. method: "POST",
  180. headers: {
  181. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  182. },
  183. params,
  184. });
  185. }
  186. // 获取单机性能详情------查询明细页面显示信息
  187. export function getApiwadAjax(params) {
  188. return request({
  189. baseURL: process.env.VUE_APP_API,
  190. url: `/goodness/wadAjax?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  191. method: "GET",
  192. });
  193. }
  194. // 获取单机性能详情------单台风机当月报警排行
  195. export function getApibjphlist(params) {
  196. return request({
  197. baseURL: process.env.VUE_APP_API,
  198. url: "/goodness/bjphlist",
  199. method: "POST",
  200. headers: {
  201. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  202. },
  203. params,
  204. });
  205. }
  206. // 获取单机性能详情------获取明细页面功率曲线
  207. export function getApiglchat(params) {
  208. return request({
  209. baseURL: process.env.VUE_APP_API,
  210. url: `/goodness/glchat?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  211. method: "GET",
  212. });
  213. }
  214. // 获取单机性能详情------获取风机风资源
  215. export function getApifjfzy(params) {
  216. return request({
  217. baseURL: process.env.VUE_APP_API,
  218. url: `/goodness/fjfzy?recorddate=${params.recorddate}&wtId=${params.wtId}`,
  219. method: "GET",
  220. });
  221. }
  222. // ------------------------------------------------------单机月度分析---------------------------------------------------------------------
  223. // 获取单机月度分析数据------列表
  224. export function getApisingleanalysisMainlist(params) {
  225. return request({
  226. baseURL: process.env.VUE_APP_API,
  227. url: "/singleanalysis/singleanalysisMain",
  228. method: "POST",
  229. headers: {
  230. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  231. },
  232. params,
  233. });
  234. }
  235. // 获取单机月度分析数据------查询单机性能分析子页面
  236. export function getApisingleanalysisSub(params) {
  237. return request({
  238. baseURL: process.env.VUE_APP_API,
  239. url: "/singleanalysis/singleanalysisSub",
  240. method: "GET",
  241. params,
  242. });
  243. }
  244. // 单机信息总览图表接口(3个) 发电量和风速、五项损失、静风频率和待机时间
  245. export function getApisingleanalysisChart(params) {
  246. return request({
  247. baseURL: process.env.VUE_APP_API,
  248. url: "/singleanalysis/singleanalysisChart",
  249. method: "GET",
  250. params,
  251. });
  252. }
  253. // ------------------------------------------------------切入切出分析---------------------------------------------------------------------
  254. // 获取切入切出管理------列表
  255. export function getApioutputSpeedlist(params) {
  256. return request({
  257. baseURL: process.env.VUE_APP_API,
  258. url: "/outputspeed/outputSpeedlist",
  259. method: "POST",
  260. headers: {
  261. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  262. },
  263. params,
  264. });
  265. }
  266. // 获取切入切出管理------历史列表
  267. export function getApioutputSpeedhistorylist(params) {
  268. return request({
  269. baseURL: process.env.VUE_APP_API,
  270. url: "/outputspeed/outputspeedhistorylist",
  271. method: "POST",
  272. headers: {
  273. "content-type": "application/x-www-form-urlencoded", // FormData格式传参
  274. },
  275. params,
  276. });
  277. }
  278. // ------------------------------------------------------------单机对标------------------------------------------------------------------------
  279. // 单机横向对比列表
  280. export function getApiequipmentPerformaCompare(params) {
  281. return request({
  282. baseURL: process.env.VUE_APP_API,
  283. url: `/performa-compare/equipment-performa-compare?type=${params.type}&dateType=${params.dateType}&windturbineIds=${params.wtIds}&date=${params.date}`,
  284. method: "GET",
  285. });
  286. }
  287. // 单机横向对比echarts
  288. export function getApicurveFitting(params) {
  289. return request({
  290. baseURL: process.env.VUE_APP_API,
  291. url: `/performa-compare/curve-fitting?windturbineIds=${params.wtIds}`,
  292. method: "GET",
  293. });
  294. }
  295. // ------------------------------------------------------------等级评估------------------------------------------------------------------------
  296. export function getApiequipmentinfoDayList(params) {
  297. return request({
  298. baseURL: process.env.VUE_APP_API,
  299. 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}`,
  300. method: "GET",
  301. });
  302. }
  303. export function getApiequipmentinfoDayHistoryList(params) {
  304. return request({
  305. baseURL: process.env.VUE_APP_API,
  306. url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-history-list?beginDate=${params.beginDate}&endDate=${params.endDate}&types=${params.types}&windturbineId=${params.wtId}`,
  307. method: "GET",
  308. });
  309. }
  310. export function getApiequipmentinfoDayCompareList(params) {
  311. return request({
  312. baseURL: process.env.VUE_APP_API,
  313. url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-compare-list?ids=${params.oid}&ids=${params.tid}&types=${params.types}`,
  314. // url: '/pro-econ-equipment-info-day-top/equipmentinfo-day-compare-list?ids=1595968732880998402&ids=1595968732939718671&types=1',
  315. method: "GET",
  316. });
  317. }
  318. // ------------------------------------------------------------功率曲线拟合------------------------------------------------------------------------
  319. export function getApiPerformancecurvefitting(params) {
  320. return request({
  321. baseURL: process.env.VUE_APP_API,
  322. url: `/performance/curvefitting?dateType=${params.dateType}&type=${params.type}&windturbineIds=${params.wtId}`,
  323. method: "GET",
  324. });
  325. }
  326. // ------------------------------------------------------------综合分析------------------------------------------------------------------------
  327. export function getApimaintoplist(params) {
  328. return request({
  329. baseURL: process.env.VUE_APP_API,
  330. url: `/specific/maintoplist?companys=${params.companys}&type=${params.type}&month=${params.month}`,
  331. method: "GET",
  332. });
  333. }
  334. export function getApimaincenterlist(params) {
  335. return request({
  336. baseURL: process.env.VUE_APP_API,
  337. url: `/specific/maincenterlist?companys=${params.companys}&type=${params.type}&month=${params.month}`,
  338. method: "GET",
  339. });
  340. }
  341. //查询电量分析
  342. export function getMonthElectricAnalyse(params) {
  343. return request({
  344. baseURL: process.env.VUE_APP_API,
  345. url: `/electricity/statistics?wpId=${params.wpId}&timetype=month&year=${params.year}`,
  346. method: "GET",
  347. });
  348. }
  349. //查询逆变器电量分析
  350. export function getMonthElectricAnalyseGf(params) {
  351. return request({
  352. baseURL: process.env.VUE_APP_API,
  353. url: `/electricity/coulometric?wpId=${params.wpId}&year=${params.year}`,
  354. method: "GET",
  355. });
  356. }
  357. //查询逆变器电量分析
  358. export function getOwnDemand(params) {
  359. return request({
  360. baseURL: process.env.VUE_APP_API,
  361. url: `/electricity/Comprehensive?wpId=${params.wpId}&year=${params.year}`,
  362. method: "GET",
  363. });
  364. }
  365. //查询逆变器电量分析
  366. export function getAllStation(params) {
  367. return request({
  368. baseURL: process.env.VUE_APP_API,
  369. url: `/electricity/czlist`,
  370. method: "GET",
  371. });
  372. }
  373. //查询逆变器PR分析
  374. export function getPrAnalysis(params) {
  375. return request({
  376. baseURL: process.env.VUE_APP_API,
  377. url: `/PVSystemEfficiency/pranalysis?month=${params.month}&wpId=${params.wpId}&target=${params.target}&sort=${params.sort}`,
  378. method: "GET",
  379. });
  380. }
  381. //查询光资源分析
  382. export function getVoltaicAnalysis(Data) {
  383. return request({
  384. baseURL: process.env.VUE_APP_API,
  385. url: `/analysisfx/gzanalysis?Data=${Data}`,
  386. method: "GET",
  387. });
  388. }
  389. //查询光资源分析曲线
  390. export function getVoltaicAnalysisChart({ Data, wpid }) {
  391. return request({
  392. baseURL: process.env.VUE_APP_API,
  393. url: `/analysisfx/GFGroupRealtime?Data=${Data}&wpid=${wpid}`,
  394. method: "GET",
  395. });
  396. }
  397. //查询风资源分析
  398. export function getWindAnalysis(Data) {
  399. return request({
  400. baseURL: process.env.VUE_APP_API,
  401. url: `/analysisfx/fdanalysis?Data=${Data}`,
  402. method: "GET",
  403. });
  404. }
  405. //查询风资源分析曲线
  406. export function getWindAnalysisChart({Data,wpid}) {
  407. return request({
  408. baseURL: process.env.VUE_APP_API,
  409. url: `/analysisfx/FDGroupRealtime?Data=${Data}&wpid=${wpid}`,
  410. method: "GET",
  411. });
  412. }
  413. //查询风资源分析雷达图
  414. export function getWindAnalysisRadarChart({Data,wpid}) {
  415. return request({
  416. baseURL: process.env.VUE_APP_API,
  417. url: `/analysisfx/roses?Data=${Data}&wpid=${wpid}&mode=0`,
  418. method: "GET",
  419. });
  420. }