home.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import request from "@/tools/request.js";
  2. export function FindBasicDataInfo(data) {
  3. return request({
  4. url: `cockpit/monitor?wpId=${data.wpId}`,
  5. method: "get",
  6. });
  7. }
  8. export function FindRealtimeInfo(data) {
  9. return request({
  10. url: `cockpit/Realtime?wpId=${data.wpId}&uniformCode=${data.uniformCode}`,
  11. method: "get",
  12. });
  13. }
  14. export function FindPowerInfo(data) {
  15. return request({
  16. baseURL: process.env.VUE_APP_Matrix,
  17. url: `cockpit/Powercurve24?wpId=${data.id}`,
  18. method: "get",
  19. });
  20. }
  21. export function FindUtilizationhours(data) {
  22. return request({
  23. baseURL: process.env.VUE_APP_Matrix,
  24. url: `cockpit/Utilizationhours?wpId=${data.wpId}&timetype=${data.timetype}`,
  25. method: "get",
  26. });
  27. }
  28. export function FindPlanproject(data) {
  29. return request({
  30. baseURL: process.env.VUE_APP_Matrix,
  31. url: `cockpit/Planproject?wpId=${data.wpId}&timetype=${data.timetype}`,
  32. method: "get",
  33. });
  34. }
  35. export function FindProjectplan(data) {
  36. return request({
  37. baseURL: process.env.VUE_APP_Matrix,
  38. url: `cockpit/projectplan?wpId=${data.wpId}`,
  39. method: "get",
  40. });
  41. }