index.js 25 KB

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