index.js 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. import request from "../../tools/request";
  2. //风机绩效榜
  3. const benchmarking = (data) => {
  4. return request({
  5. url: `/consumer/benchmarking/fjjxb?wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&type=${data.type}&target=${data.target}&sort=${data.sort}`,
  6. method: "get",
  7. });
  8. };
  9. // //风速绩效榜
  10. // const getStationPersis = (data) => {
  11. // return request({
  12. // url:/windpowerstation/getStationPersis?station=${data.wpids}&startdate=${data.startdate}&enddate=${data.enddate},
  13. // method:"get"
  14. // })
  15. // };
  16. // 测值曲线分析
  17. //场站性能分析
  18. // http://10.81.3.155:8170/stationPersis/getStationPersis?station=HSM_FDC&startdate=2022-10-25%2008:31:19&enddate=2022-10-25%2010:31:19
  19. // http://localhost:8171///pointpersis/getPointPerSisList?wtid=GJY01_001&beginDate=1666991363000&endDate=1667012963000&interval=10&uniformcodes=R0QFZT,R1QFZT
  20. const getStationPersis = (data) => {
  21. return request({
  22. baseURL: process.env.VUE_APP_Matrix,
  23. url: `/stationPersis/getStationPersis?station=${data.station}&startdate=${data.startdate}&enddate=${data.enddate}`,
  24. method: "get",
  25. });
  26. };
  27. //风机绩效榜
  28. const benchmarkingmx = (data) => {
  29. return request({
  30. url: `/consumer/benchmarking/fjjxbmx?wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&type=${data.type}&target=${data.target}&sort=${data.sort}`,
  31. method: "get",
  32. });
  33. };
  34. const benchmarkingLineList = (data) => {
  35. return request({
  36. url: `/consumer/benchmarking/lineList?projects=${data.projects}`,
  37. method: "get",
  38. });
  39. };
  40. const benchmarkingWplist = (data) => {
  41. return request({
  42. url: `/consumer/benchmarking/wplist`,
  43. method: "get",
  44. });
  45. };
  46. export const getWpList = (data) => {
  47. return request({
  48. url: `/benchmarking/wpByCplist?companyids=SXJ_RGN&type=${data.type}`,
  49. method: "get",
  50. });
  51. };
  52. export const getSubList = (data) => {
  53. return request({
  54. url: `/benchmarking/subByCplist?companyids=SXJ_RGN&type=${data.type}`,
  55. method: "get",
  56. });
  57. };
  58. const benchmarkingProjectList = (data) => {
  59. return request({
  60. url: `/consumer/benchmarking/projectList?wpids=${data.wpids}`,
  61. method: "get",
  62. });
  63. };
  64. // ********* NewPages power-benchmarking.vue
  65. const benchmarkingDbmainbottom = (data) => {
  66. return request({
  67. url: `/consumer/benchmarking/dbmainbottom?timetype=${data.timetype}&foreigntype=${data.foreigntype}`,
  68. method: "get",
  69. });
  70. };
  71. const benchmarkingDbmaintop = (data) => {
  72. return request({
  73. url: `/consumer/benchmarking/dbmaintop?timetype=${data.timetype}&foreigntype=${data.foreigntype}`,
  74. method: "get",
  75. });
  76. };
  77. // 节能减排KPI
  78. const targetdataJnjpkpi = (data) => {
  79. return request({
  80. url: `/consumer/targetdata/jnjpkpi?month=${data.month}`,
  81. method: "get",
  82. });
  83. };
  84. //风机绩效榜明细
  85. // const benchmarkingLineList1 = (data) => {
  86. // return request({
  87. // url: /consumer/benchmarking/lineList?month=${data.projects},
  88. // method: "get",
  89. // });
  90. // };
  91. //五项损失率
  92. const benchmarkingDetails = (data) => {
  93. return request({
  94. url: `/consumer/benchmarking/details?id=${data.id}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  95. method: "get",
  96. });
  97. };
  98. const benchmarkingWxssl = (data) => {
  99. return request({
  100. url: `/consumer/benchmarking/wxssl?wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  101. method: "get",
  102. });
  103. };
  104. //场内对标
  105. const benchmarkingCndb = (data) => {
  106. return request({
  107. url: `/consumer/benchmarking/cndb?wpid=${data.wpid}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  108. method: "get",
  109. });
  110. };
  111. //场际对标
  112. const benchmarkingCjdb = (data) => {
  113. return request({
  114. url: `/consumer/benchmarking/cjdb?wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  115. method: "get",
  116. });
  117. };
  118. //项目对标
  119. const benchmarkingXmdb = (data) => {
  120. return request({
  121. url: `/consumer/benchmarking/xmdb?wpids=${data.wpids}&projectids=${data.projectids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  122. method: "get",
  123. });
  124. };
  125. //线路对标
  126. const benchmarkingXldb = (data) => {
  127. return request({
  128. url: `/consumer/benchmarking/xldb?wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  129. method: "get",
  130. });
  131. };
  132. //值际对标
  133. const benchmarkingZjwxssl = (data) => {
  134. return request({
  135. url: `/consumer/benchmarking/zjwxssl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  136. method: "get",
  137. });
  138. };
  139. //操作指令统计
  140. const benchmarkingZjlist = (data) => {
  141. return request({
  142. url: `/consumer/benchmarking/zjlist?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  143. method: "get",
  144. });
  145. };
  146. const benchmarkingZjdrill = (data) => {
  147. return request({
  148. url: `/consumer/benchmarking/zjdrill?beginDate=${data.beginDate}&endDate=${data.endDate}&dutyname=${data.dutyname}&direct=${data.direct}`,
  149. method: "get",
  150. });
  151. };
  152. //单机横向对比
  153. const benchmarkingWtList = (data) => {
  154. return request({
  155. url: `/consumer/benchmarking/wtList?wpid=${data.wpid}`,
  156. method: "get",
  157. });
  158. };
  159. const ajaxName = (data) => {
  160. return request({
  161. url: `/consumer/benchmarking/${data.ajaxName}?wpid=${data.wpid}&wtids=${data.wtids}&date=${data.date}&target=${data.target}&sort=${data.sort}`,
  162. method: "get",
  163. });
  164. };
  165. const benchmarkingDjhxdbbottom = (data) => {
  166. return request({
  167. url: `/consumer/benchmarking/djhxdbbottom?wpid=${data.wpid}&wtids=${data.wtids}&date=${data.date}`,
  168. method: "get",
  169. });
  170. };
  171. // 三率管理/复位及时率
  172. const threerateFwjsl = (data) => {
  173. return request({
  174. url: `/consumer//threerate/fwjsl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  175. method: "get",
  176. });
  177. };
  178. // 三率管理/状态转换率
  179. const threerateZtzhl = (data) => {
  180. return request({
  181. url: `/consumer/threerate/ztzhl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  182. method: "get",
  183. });
  184. };
  185. // 三率管理/消缺及时率
  186. const threerateXqjsl = (data) => {
  187. return request({
  188. url: `/consumer/threerate/xqjsl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  189. method: "get",
  190. });
  191. };
  192. // 发电效率排行
  193. const leaderboardLoadfactortoplist = (data) => {
  194. return request({
  195. url: `/consumer/ranking/efficiencyRanking?beginDate=${data.beginDate}&endDate=${data.endDate}&wpid=${data.wpId}&orderby=${data.orderby}&isAsc=${data.isAsc}`,
  196. method: "get",
  197. });
  198. };
  199. // 总发电效率排行
  200. const leaderboardTotalPowerCapacityTopList = (data) => {
  201. return request({
  202. url: `/consumer/ranking/electricRanking?beginDate=${data.beginDate}&endDate=${data.endDate}&wpid=${data.wpid}&orderby=${data.orderby}&isAsc=${data.isAsc}`,
  203. method: "get",
  204. });
  205. };
  206. // 报警排行
  207. const leaderboardQuerywarningStatistical = (data) => {
  208. return request({
  209. url: `/consumer/leaderboard/querywarningStatistical`,
  210. method: "post",
  211. data: data,
  212. });
  213. };
  214. // 专题分析
  215. const specificMaincenterlist = (data) => {
  216. return request({
  217. url: `/consumer/specific/maincenterlist?month=${data.month}`,
  218. method: "get",
  219. });
  220. };
  221. const specificMaintoplist = (data) => {
  222. return request({
  223. url: `/consumer/specific/maintoplist?month=${data.month}`,
  224. method: "get",
  225. });
  226. };
  227. // 风能利用率
  228. const specificFnlylList = (data) => {
  229. return request({
  230. url: `/consumer/specific/fnlylList?year=${data.year}`,
  231. method: "get",
  232. });
  233. };
  234. // 故障损失率
  235. const specificGzsslList = (data) => {
  236. return request({
  237. url: `/consumer/specific/gzsslList?year=${data.year}`,
  238. method: "get",
  239. });
  240. };
  241. // 限电损失率
  242. const specificXdsslList = (data) => {
  243. return request({
  244. url: `/consumer/specific/xdsslList?year=${data.year}`,
  245. method: "get",
  246. });
  247. };
  248. // 性能损失率
  249. const specificXnsslList = (data) => {
  250. return request({
  251. url: `/consumer/specific/xnsslList?year=${data.year}`,
  252. method: "get",
  253. });
  254. };
  255. // 受累损失率
  256. const specificSlsslList = (data) => {
  257. return request({
  258. url: `/consumer/specific/slsslList?year=${data.year}`,
  259. method: "get",
  260. });
  261. };
  262. // mtbf
  263. const specificMtbfList = (data) => {
  264. return request({
  265. url: `/consumer/specific/mtbfList?year=${data.year}`,
  266. method: "get",
  267. });
  268. };
  269. // mttr
  270. const specificMttrList = (data) => {
  271. return request({
  272. url: `/consumer/specific/mttrList?year=${data.year}`,
  273. method: "get",
  274. });
  275. };
  276. // 复位及时率
  277. const specificFwjslList = (data) => {
  278. return request({
  279. url: `/consumer/specific/fwjslList?year=${data.year}`,
  280. method: "get",
  281. });
  282. };
  283. // 状态转换率
  284. const specificZtzhlList = (data) => {
  285. return request({
  286. url: `/consumer/specific/ztzhlList?year=${data.year}`,
  287. method: "get",
  288. });
  289. };
  290. // 消缺及时率
  291. const specificXqjslList = (data) => {
  292. return request({
  293. url: `/consumer/specific/xqjslList?year=${data.year}`,
  294. method: "get",
  295. });
  296. };
  297. // 发电量分析
  298. const specificFdlList = (data) => {
  299. return request({
  300. url: `/consumer/specific/fdlList?year=${data.year}`,
  301. method: "get",
  302. });
  303. };
  304. // 综合场用电量
  305. const specificZhcydlList = (data) => {
  306. return request({
  307. url: `/consumer/specific/zhcydlList?year=${data.year}`,
  308. method: "get",
  309. });
  310. };
  311. // 单机信息总览
  312. const powercompareWindfarmAjax = (data) => {
  313. return request({
  314. baseURL: process.env.VUE_APP_Matrix,
  315. url: `/powercompare/windfarmAjax`,
  316. method: "get",
  317. });
  318. };
  319. const goodnessWindturbinegoodness = (data) => {
  320. return request({
  321. baseURL: process.env.VUE_APP_Matrix,
  322. url: `/goodness/windturbinegoodness?wpId=${
  323. data.wpId
  324. }&isAsc=${JSON.stringify(data.tablepar)}&recorddate=${data.recorddate}`,
  325. method: "post",
  326. });
  327. };
  328. const powercompareWindturbineAjax = (data) => {
  329. return request({
  330. baseURL: process.env.VUE_APP_Matrix,
  331. url: `/powercompare/windturbineAjax?wpId=${data.wpId}`,
  332. method: "get",
  333. });
  334. };
  335. const goodnessGoodhistorylist = (data) => {
  336. return request({
  337. baseURL: process.env.VUE_APP_Matrix,
  338. url: `/goodness/goodhistorylist?wpId=${data.wpId}&wtId=${data.wtId}&beginDate=${data.beginDate}&endDate=${data.endDate}`,
  339. method: "post",
  340. });
  341. };
  342. // 单机信息总览详情
  343. const goodnessFindWtRealPowerChar = (data) => {
  344. return request({
  345. baseURL: process.env.VUE_APP_Matrix,
  346. url: `/goodness/findWtRealPowerChar?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  347. method: "get",
  348. });
  349. };
  350. const goodnessGetplotBands = (data) => {
  351. return request({
  352. baseURL: process.env.VUE_APP_Matrix,
  353. url: `goodness/getplotBands?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  354. method: "get",
  355. });
  356. };
  357. const goodnessPlotBandAjax = (data) => {
  358. return request({
  359. baseURL: process.env.VUE_APP_Matrix,
  360. url: `/goodness/plotBandAjax?wtId=${data.wtId}&beginDate=${data.beginDate}&endDate=${data.endDate}`,
  361. method: "get",
  362. });
  363. };
  364. const goodnessFindRealPowerCharBy24 = (data) => {
  365. return request({
  366. baseURL: process.env.VUE_APP_Matrix,
  367. url: `/goodness/findRealPowerCharBy24?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  368. method: "get",
  369. });
  370. };
  371. const goodnessBjjllist = (data) => {
  372. return request({
  373. baseURL: process.env.VUE_APP_Matrix,
  374. url: `/goodness/bjjllist?wtId=${data.wtId}&recorddate=${data.recorddate}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
  375. method: "post",
  376. });
  377. };
  378. const goodnessGzjllist = (data) => {
  379. return request({
  380. baseURL: process.env.VUE_APP_Matrix,
  381. url: `/goodness/gzjllist?wtId=${data.wtId}&recorddate=${data.recorddate}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
  382. method: "post",
  383. });
  384. };
  385. const goodnessXdjllist = (data) => {
  386. return request({
  387. baseURL: process.env.VUE_APP_Matrix,
  388. url: `/goodness/xdjllist?wtId=${data.wtId}&recorddate=${data.recorddate}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
  389. method: "post",
  390. });
  391. };
  392. const goodnessWadAjax = (data) => {
  393. return request({
  394. baseURL: process.env.VUE_APP_Matrix,
  395. url: `/goodness/wadAjax?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  396. method: "get",
  397. });
  398. };
  399. const goodnessBphlist = (data) => {
  400. return request({
  401. baseURL: process.env.VUE_APP_Matrix,
  402. url: `/goodness/bjphlist?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  403. method: "post",
  404. });
  405. };
  406. const goodnessGlchat = (data) => {
  407. return request({
  408. baseURL: process.env.VUE_APP_Matrix,
  409. url: `/goodness/glchat?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  410. method: "get",
  411. });
  412. };
  413. const goodnessFjfzy = (data) => {
  414. return request({
  415. baseURL: process.env.VUE_APP_Matrix,
  416. url: `/goodness/fjfzy?wtId=${data.wtId}&recorddate=${data.recorddate}`,
  417. method: "get",
  418. });
  419. };
  420. const requestData1 = (data) => {
  421. return request({
  422. baseURL: process.env.VUE_APP_Matrix,
  423. url: `/${data.subUrl}?wpId=${data.data.wtId}&wtId=${data.data.wtId}&recorddate=${data.data.recorddate}&type=${data.data.type}`,
  424. method: "get",
  425. });
  426. };
  427. //znzhfx.vue
  428. const singleanalysisSingleanalysisSub = (data) => {
  429. return request({
  430. baseURL: process.env.VUE_APP_Matrix,
  431. url: `/singleanalysis/singleanalysisSub?wtId=${data.wtId}&year=${data.year}&month=${data.month}`,
  432. method: "get",
  433. });
  434. };
  435. const singleanalysisSingleanalysisChart = (data) => {
  436. return request({
  437. baseURL: process.env.VUE_APP_Matrix,
  438. url: `/singleanalysis/singleanalysisChart?wtId=${data.wtId}&year=${data.year}&month=${data.month}`,
  439. method: "get",
  440. });
  441. };
  442. // 单机月度分析
  443. const singleanalysisSingleanalysisMain = (data) => {
  444. return request({
  445. baseURL: process.env.VUE_APP_Matrix,
  446. url: `singleanalysis/singleanalysisMain?wpId=${data.wpId}&isAsc=${data.isAsc}&year=${data.year}&month=${data.month}`,
  447. method: "post",
  448. });
  449. };
  450. //电量分析 未绑定界面
  451. //forecast-system.vue
  452. const powercompareWindfarmAllAjax2 = (data) => {
  453. return request({
  454. baseURL: process.env.VUE_APP_Matrix,
  455. url: `/powercompare/windfarmAllAjax`,
  456. method: "get",
  457. });
  458. };
  459. const weatherWeatherInfo = (data) => {
  460. return request({
  461. baseURL: process.env.VUE_APP_Matrix,
  462. url: `/weather/weatherInfo?wpId=${data.wpId}`,
  463. method: "get",
  464. });
  465. };
  466. const weatherPowerChart = (data) => {
  467. return request({
  468. baseURL: process.env.VUE_APP_Matrix,
  469. url: `/weather/powerChart`,
  470. method: "get",
  471. });
  472. };
  473. // 报表管理 --统计分析
  474. const statisticAnalysis = (data) => {
  475. return request({
  476. url: `/consumer/analysisplus/list?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  477. method: "get",
  478. });
  479. };
  480. // 报表管理 --统计分析-场站
  481. const analysisplusTjfxlist = (data) => {
  482. return request({
  483. url: `/consumer/analysisplus/tjfxlist?theday=${data.theday}&wpid=${
  484. data.wpid
  485. }&identity=${0}`,
  486. method: "get",
  487. });
  488. };
  489. // 报表管理 --统计分析-表底
  490. const analysisplusBdzlist = (data) => {
  491. return request({
  492. url: `/consumer/analysisplus/bdzlist?theday=${data.theday}&wpid=${data.wpid}`,
  493. method: "get",
  494. });
  495. };
  496. // 报表管理 --统计分析--确认提交数据‘
  497. const analysisplusCommit = (data) => {
  498. return request({
  499. url: `/consumer/analysisplus/commit`,
  500. method: "post",
  501. data: data,
  502. });
  503. };
  504. //安措内容分类
  505. const safetyMeasure = (data) => {
  506. return request({
  507. url: `consumer/knowledge/workGuideKnowledge/safetyMeasure?pageNum=${data.pageNum}&pageSize=${data.pageSize}&content=${data.content}&rsnum=${data.rsnum}`,
  508. method: "get",
  509. });
  510. };
  511. //危险点内容
  512. const dangerContent = (data) => {
  513. return request({
  514. url: `consumer/knowledge/workGuideKnowledge/dangerContent?pageNum=${data.pageNum}&pageSize=${data.pageSize}&content=${data.content}&rsnum=${data.rsnum}`,
  515. method: "get",
  516. });
  517. };
  518. //危险点内容
  519. const energyDaily = (data) => {
  520. return request({
  521. url: `/consumer/analysisplus/energyDaily?theday=${data.theday}`,
  522. method: "get",
  523. });
  524. };
  525. //测点数据查询---- 获取左侧菜单
  526. const datacenterTables = (data) => {
  527. return request({
  528. url: `/consumer/dataquery/tables`,
  529. method: "get",
  530. });
  531. };
  532. //测点数据查询---- 获取表格数据
  533. const datacenterRealtimeData = (data) => {
  534. return request({
  535. url: `/consumer/dataquery/realtimeData?tableid=${data.tableid}&pointId=${data.pointId}&pointName=${data.pointName}&pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
  536. method: "get",
  537. });
  538. };
  539. //测点数据查询---- 获取详情
  540. const datacenterHistoryData = (data) => {
  541. return request({
  542. url: `/consumer/dataquery/historyData?pointId=${data.pointId}&begin=${data.begin}&end=${data.end}`,
  543. method: "get",
  544. });
  545. };
  546. //测点数据查询---- 导出excel
  547. const datacenterRealtimeExport = (data) => {
  548. return request({
  549. url: `/consumer/dataquery/realtimeExport?tableid=${data.tableid}&pointId=${data.pointId}&pointName=${data.pointName}`,
  550. method: "get",
  551. });
  552. };
  553. //测点历史数据查询-获取设备结构
  554. const paramComparisonEquipmentStructure = (data) => {
  555. return request({
  556. url: `/consumer/paramComparison/equipmentStructure`,
  557. method: "get",
  558. });
  559. };
  560. //测点历史数据查询-获取关键节点
  561. const paramComparisonEquipmentParams = (data) => {
  562. return request({
  563. url: `/consumer/paramComparison/equipmentParams`,
  564. method: "get",
  565. });
  566. };
  567. //测点历史数据查询-渲染图表
  568. const paramComparisonGeneratingCurve = (data) => {
  569. if (data.interval && data.type) {
  570. return request({
  571. url: `/consumer/paramComparison/generatingCurve?begin=${data.begin}&end=${
  572. data.end
  573. }&interval=${data.interval ? data.interval : ""}&type=${
  574. data.type ? data.type : ""
  575. }&paramtype=${data.paramtype}&wts=${data.wts}&params=${data.params}`,
  576. method: "get",
  577. });
  578. } else {
  579. return request({
  580. url: `/consumer/paramComparison/generatingCurve?begin=${data.begin}&end=${data.end}&paramtype=${data.paramtype}&wts=${data.wts}&params=${data.params}`,
  581. method: "get",
  582. });
  583. }
  584. };
  585. //功率曲线分析获取场站
  586. const wpwtlist = () => {
  587. return request({
  588. url: `/consumer/benchmarking/wpwtlist`,
  589. method: "get",
  590. });
  591. };
  592. export const getWtList = (data) => {
  593. return request({
  594. baseURL: process.env.VUE_APP_NEW_WISDOM,
  595. url: `/health/windturbineAjax?wpId=${data.wpId}`,
  596. method: "get",
  597. });
  598. };
  599. //功率曲线拟合
  600. const curvefitting = (data) => {
  601. return request({
  602. url: `/consumer/performance/curvefitting?type=${data.type}&wtids=${data.wtids}`,
  603. method: "get",
  604. });
  605. };
  606. //测值曲线分析
  607. // const getPointPerSisList = (data) => {
  608. // return request({
  609. // baseURL: process.env.VUE_APP_Matrix,
  610. // // url:/stationPersis/getStationPersis?station=${data.station}&startdate=${data.startdate}&enddate=${data.enddate},
  611. // url:/pointpersis/getPointPerSisList?wtid=${data.wtid}&beginDate=${data.beginDate}&endDate=${data.endDate}&interval=${data.interval}&uniformcodes=${data.uniformcodes},
  612. // method:"get"
  613. // })
  614. // };
  615. const getPointPerSisList = (data) => {
  616. return request({
  617. baseURL: process.env.VUE_APP_Matrix,
  618. // url: `/pointpersis/getPointPerSisList?wtid=${data.wtid}&beginDate=${data.beginDate}&endDate=${data.endDate}&interval=10&uniformcodes=${data.uniformcodes}`,
  619. url: `/pointpersis/getPointPerSisList?wtid=${data.wtid}&beginDate=${data.beginDate}&endDate=${data.endDate}&interval=${data.interval}&uniformcodes=${data.uniformcodes}`,
  620. method: "get",
  621. });
  622. };
  623. //测点取值列表
  624. const getpoints = (data) => {
  625. return request({
  626. baseURL: process.env.VUE_APP_Matrix,
  627. url: `/pointpersis/getpoints`,
  628. method: "get",
  629. });
  630. };
  631. //月电量分析
  632. const geteleperanalysislist = (data) => {
  633. return request({
  634. baseURL: process.env.VUE_APP_Matrix,
  635. url: `/eleperanalysis/geteleperanalysislist?station=${data.wpId}&year=${data.year}&month=${data.month}&regionid=${data.regionId}&companyid=${data.companyId}`,
  636. method: "get",
  637. });
  638. };
  639. //eba能效分析
  640. const getebapersislist = (data) => {
  641. return request({
  642. baseURL: process.env.VUE_APP_Matrix,
  643. url: `/ebapersis/getebapersislist?station=${data.wpId}&year=${data.year}&month=${data.month}&regionid=${data.regionId}&companyid=${data.companyId}`,
  644. method: "get",
  645. });
  646. };
  647. //长停分析
  648. // http://localhost:8171/event/getLonShutdownevent?pageNum=1&pageSize=2&wpId&wtId&beginDate=2022-01-01&endDate=2022-12-30&type
  649. const getLonShutdownevent = (data) => {
  650. return request({
  651. baseURL: process.env.VUE_APP_Matrix,
  652. url: `/fault/getLonShutdownevent?wpId=${data.wpId}&wtId=${data.wtId}&pageNum=${data.pageNum}&pageSize=${data.pageSize}&beginDate=${data.beginDate}&endDate=${data.endDate}&type=${data.type}`,
  653. method: "get",
  654. });
  655. };
  656. //获取公司 id=QJNY http://10.81.3.155:8170/Companys/listByPage?id=QJNY&name=清洁能源公司
  657. const getCompany = (data) => {
  658. return request({
  659. baseURL: process.env.VUE_APP_Matrix,
  660. url: `Companys/listByPage?id=${data.companyId}`,
  661. method: "get",
  662. });
  663. };
  664. // 获取指定公司下的区域
  665. // 区域:http://10.81.3.155:8170/Region/list?companyid=JKDL
  666. const getRegion = (data) => {
  667. return request({
  668. baseURL: process.env.VUE_APP_Matrix,
  669. url: `/Region/list?companyid=${data.companyid}`,
  670. method: "get",
  671. });
  672. };
  673. // 获取指定公司及区域下的场站 场站:http://10.81.3.155:8170/windpowerstation/list?companyid=JKDL&regionid=SX
  674. const getStation = (data) => {
  675. return request({
  676. baseURL: process.env.VUE_APP_Matrix,
  677. url: `/windpowerstation/list?companyid=${data.companyId}&regionid=${data.regionId}`,
  678. method: "get",
  679. });
  680. };
  681. // --EBA能效分析
  682. // http://10.81.3.155:8170/ebapersis/getebapersislist?year=2022&month=8&regionid=SX&companyid=QJNY&station=BHB3_FDC
  683. // --测点曲线分析 getStationPersis
  684. // http://10.81.3.155:8170/pointpersis/getPointPerSisList?wtid=GJY01_001&beginDate=1666991363000&endDate=1667012963000&interval=10&uniformcodes=R0QFZT,R1QFZT
  685. // --获取测点
  686. // http://10.81.3.155:8171/pointpersis/getpoints
  687. // --场站性能分析
  688. // http://10.81.3.155:8170/stationPersis/getStationPersis?station=HSM_FDC&startdate=2022-10-25%2008:31:19&enddate=2022-10-25%2010:31:19
  689. export default {
  690. benchmarking,
  691. getStationPersis,
  692. benchmarkingmx,
  693. benchmarkingLineList,
  694. benchmarkingWplist,
  695. getWpList,
  696. benchmarkingProjectList,
  697. benchmarkingDbmainbottom,
  698. benchmarkingDbmaintop,
  699. targetdataJnjpkpi,
  700. benchmarkingDetails,
  701. benchmarkingWxssl,
  702. benchmarkingCndb,
  703. benchmarkingCjdb,
  704. benchmarkingXmdb,
  705. benchmarkingXldb,
  706. benchmarkingZjwxssl,
  707. benchmarkingZjlist,
  708. benchmarkingZjdrill,
  709. benchmarkingWtList,
  710. benchmarkingDjhxdbbottom,
  711. threerateFwjsl,
  712. threerateZtzhl,
  713. threerateXqjsl,
  714. leaderboardLoadfactortoplist,
  715. leaderboardTotalPowerCapacityTopList,
  716. leaderboardQuerywarningStatistical,
  717. specificMaincenterlist,
  718. specificMaintoplist,
  719. specificFnlylList,
  720. specificGzsslList,
  721. specificXdsslList,
  722. specificXnsslList,
  723. specificSlsslList,
  724. specificMtbfList,
  725. specificMttrList,
  726. specificFwjslList,
  727. specificZtzhlList,
  728. specificXqjslList,
  729. specificFdlList,
  730. specificZhcydlList,
  731. powercompareWindfarmAjax,
  732. goodnessWindturbinegoodness,
  733. powercompareWindturbineAjax,
  734. goodnessGoodhistorylist,
  735. goodnessFindWtRealPowerChar,
  736. goodnessGetplotBands,
  737. goodnessPlotBandAjax,
  738. ajaxName,
  739. goodnessFindRealPowerCharBy24,
  740. goodnessBjjllist,
  741. goodnessGzjllist,
  742. goodnessXdjllist,
  743. goodnessWadAjax,
  744. goodnessBphlist,
  745. goodnessGlchat,
  746. goodnessFjfzy,
  747. requestData1,
  748. singleanalysisSingleanalysisSub,
  749. singleanalysisSingleanalysisChart,
  750. singleanalysisSingleanalysisMain,
  751. powercompareWindfarmAllAjax2,
  752. weatherWeatherInfo,
  753. weatherPowerChart,
  754. statisticAnalysis,
  755. analysisplusTjfxlist,
  756. analysisplusBdzlist,
  757. analysisplusCommit,
  758. safetyMeasure,
  759. dangerContent,
  760. energyDaily,
  761. datacenterTables,
  762. datacenterRealtimeData,
  763. datacenterHistoryData,
  764. datacenterRealtimeExport,
  765. paramComparisonEquipmentStructure,
  766. paramComparisonEquipmentParams,
  767. paramComparisonGeneratingCurve,
  768. wpwtlist,
  769. getWtList,
  770. curvefitting,
  771. getPointPerSisList,
  772. getpoints,
  773. geteleperanalysislist,
  774. getebapersislist,
  775. getLonShutdownevent,
  776. getCompany,
  777. getRegion,
  778. getStation,
  779. };