home.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import request from '@/utils/request'
  2. // 获取区域和子公司
  3. export function getOrganization() {
  4. return request({
  5. url: '/assets/GetCompanyList',
  6. method: 'GET'
  7. })
  8. }
  9. // 根据公司查询资产
  10. export function GetComoanyAssets(data) {
  11. return request({
  12. url: `/assets/GetComoanyAssets?companyCode=${data.companyCode}&type=${data.type}`,
  13. method: 'get',
  14. })
  15. }
  16. //获取实时指标数据
  17. export function GetRealTimeValues(data) {
  18. return request({
  19. url: `/realTime/GetRealTimeValues?companyCode=${data.companyCode}&uniformCode=${data.uniformCode}`,
  20. method: 'get',
  21. })
  22. }
  23. //获取计算数据
  24. export function GetCalcValues(data) {
  25. return request({
  26. url: `/realTime/GetCalcValues?companyCode=${data.companyCode}&uniformCode=${data.uniformCode}`,
  27. method: 'get',
  28. })
  29. }
  30. // 获取实时发电量
  31. export function GetPlanValues(data) {
  32. return request({
  33. url: `/assets/GetFDLPlanValues?companyCode=${data.companyCode}&planDate=${data.planDate}`,
  34. method: 'get',
  35. })
  36. }
  37. //获取设备状态
  38. export function GetRealTimeStaValues(data) {
  39. return request({
  40. url: `/realTime/GetRealTimeValuesAll?companyCode=${data.companyCode}`,
  41. method: 'get',
  42. })
  43. }
  44. //获取曲线数据
  45. export function GetCurveValues(data) {
  46. return request({
  47. url: `/realTime/GetCurveValues?companyCode=${data.companyCode}&uniformCode=${data.uniformCode}&intervalTime=${data.intervalTime}`,
  48. method: 'get',
  49. })
  50. }
  51. // 获取地图电场编号
  52. export function GetPowerStation(data) {
  53. return request({
  54. url: `/assets/GetPowerStation?companyCode=${data.companyCode}&stationType=${data.stationType}`,
  55. method: 'get',
  56. })
  57. }
  58. //根据场站编码获取资产信息
  59. export function GetPowerStationAssets(data) {
  60. return request({
  61. url: `/assets/GetPowerStationAssets?stationCode=${data.stationCode}`,
  62. method: 'get',
  63. })
  64. }