index.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from "@/tools/request.js";
  2. //获取测点曲线数据
  3. export function GetPointFitting(data) {
  4. if (data.startTime === undefined) {
  5. data.startTime = "";
  6. }
  7. if (data.endTime === undefined) {
  8. data.endTime = "";
  9. }
  10. return request({
  11. baseURL: process.env.VUE_APP_Matrix,
  12. url: `findPointFitting?pointIds=${data.pointIds}&interval=${data.interval}&begin=${data.begin}&end=${data.end}`,
  13. method: "get",
  14. });
  15. }
  16. //获取测点曲线数据
  17. export function GetWtPoints(data) {
  18. return request({
  19. baseURL: process.env.VUE_APP_Matrix,
  20. url: `findWtPoints?wtid=${data.wtid}&uniformcodes=${data.uniformcodes}`,
  21. method: "get",
  22. });
  23. }
  24. //获取场站测点曲线数据
  25. export function GetWpPoints(data) {
  26. return request({
  27. baseURL: process.env.VUE_APP_Matrix,
  28. url: `findWpPoints?wpid=${data.wpid}&uniformcodes=${data.uniformcodes}`,
  29. method: "get",
  30. });
  31. }
  32. //获取调度场站测点曲线数据
  33. export function GetSubPoints(data) {
  34. return request({
  35. baseURL: process.env.VUE_APP_Matrix,
  36. url: `findSubPoints?wpid=${data.wpid}&uniformcodes=${data.uniformcodes}`,
  37. method: "get",
  38. });
  39. }
  40. //获取场站期次测点曲线数据
  41. export function GetProPoints(data) {
  42. return request({
  43. baseURL: process.env.VUE_APP_Matrix,
  44. url: `findProPoints?wpid=${data.wpid}&uniformcodes=${data.uniformcodes}`,
  45. method: "get",
  46. });
  47. }
  48. //获取统一编码数据
  49. export function GetPointsData(data) {
  50. return request({
  51. baseURL: process.env.VUE_APP_Matrix,
  52. url: `findPointDatas?pointIds=${data.pointIds}`,
  53. method: "get",
  54. });
  55. }