performance.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import request from "@/tools/request";
  2. //获取场站
  3. export function getStation(data) {
  4. return request({
  5. baseURL: process.env.VUE_APP_API,
  6. url: `/benchmarking/wpByCplist?companyids=${data.companyids}&type=${
  7. data.type || "-1"
  8. }`,
  9. method: "get",
  10. });
  11. }
  12. //获取项目
  13. export function getProject(data) {
  14. return request({
  15. baseURL: process.env.VUE_APP_API,
  16. url: `/benchmarking/pjByWplist?wpids=${data.wpids}`,
  17. method: "get",
  18. });
  19. }
  20. //获取线路
  21. export function getLine(data) {
  22. return request({
  23. baseURL: process.env.VUE_APP_API,
  24. url: `/benchmarking/lnByPjlist?pjids=${data.pjids}`,
  25. method: "get",
  26. });
  27. }
  28. //风机绩效榜
  29. export function performance(data) {
  30. return request({
  31. baseURL: process.env.VUE_APP_API,
  32. url: `/benchmarking/performance?companyid=${data.companyid}&getype=${data.getype}&sttype=${data.sttype}&beginDate=${data.beginDate}&endDate=${data.endDate}&wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&target=${data.target}&sort=${data.sort}`,
  33. method: "get",
  34. });
  35. }
  36. //风机绩效榜明细
  37. export function performanceMX(data) {
  38. return request({
  39. baseURL: process.env.VUE_APP_API,
  40. url: `/benchmarking/performanceMX?companyid=${data.companyid}&getype=${data.getype}&sttype=${data.sttype}&beginDate=${data.beginDate}&endDate=${data.endDate}&wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&target=${data.target}&sort=${data.sort}`,
  41. method: "get",
  42. });
  43. }
  44. //场际对标
  45. export function cjdb(data) {
  46. return request({
  47. baseURL: process.env.VUE_APP_API,
  48. url: `/benchmarking/cjdb?companys=${data.companys}&type=${data.type}&wpids=${data.wpids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`,
  49. method: "get",
  50. });
  51. }
  52. //对标详情
  53. export function details(data) {
  54. return request({
  55. baseURL: process.env.VUE_APP_API,
  56. url: `/benchmarking/details?id=${data.id}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`,
  57. method: "get",
  58. });
  59. }
  60. //场内对标
  61. export function cndb(data) {
  62. return request({
  63. baseURL: process.env.VUE_APP_API,
  64. url: `/benchmarking/cndb?companys=${data.companys}&type=${data.type}&wpid=${data.wpids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`,
  65. method: "get",
  66. });
  67. }
  68. //项目对标
  69. export function xmdb(data) {
  70. return request({
  71. baseURL: process.env.VUE_APP_API,
  72. url: `/benchmarking/xmdb?companys=${data.companys}&type=${data.type}&wpids=${data.wpids}&projectids=${data.projectids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`,
  73. method: "get",
  74. });
  75. }
  76. //线路对标
  77. export function xldb(data) {
  78. return request({
  79. baseURL: process.env.VUE_APP_API,
  80. url: `/benchmarking/xldb?companys=${data.companys}&type=${data.type}&wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`,
  81. method: "get",
  82. });
  83. }
  84. //五项损失率
  85. export function wxssl(data) {
  86. return request({
  87. baseURL: process.env.VUE_APP_API,
  88. url: `/benchmarking/wxssl?companys=${data.companys}&type=${data.type}&wpids=${data.wpids}&projectids=${data.projectids}&lineids=${data.lineids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
  89. method: "get",
  90. });
  91. }
  92. //同环比
  93. export function thb(data) {
  94. return request({
  95. baseURL: process.env.VUE_APP_API,
  96. url: `/benchmarking/cndbthb?companys=${data.companys}&type=${data.type}&wpid=${data.wpids}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`,
  97. method: "get",
  98. });
  99. }
  100. //值际对标
  101. export function zjdb(data) {
  102. return request({
  103. baseURL: process.env.VUE_APP_API,
  104. url: `/pro-econ-benchmarking-between/zjwxssl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
  105. method: "get",
  106. });
  107. }