import request from "@/tools/request"; //获取场站 export function getStation(data) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/wpByCplist?companyids=${data.companyids}&type=${ data.type || "-1" }`, method: "get", }); } //获取项目 export function getProject(data) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/pjByWplist?wpids=${data.wpids}`, method: "get", }); } //获取线路 export function getLine(data) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/lnByPjlist?pjids=${data.pjids}`, method: "get", }); } //风机绩效榜 export function performance(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //风机绩效榜明细 export function performanceMX(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //场际对标 export function cjdb(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //对标详情 export function details(data) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/details?id=${data.id}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`, method: "get", }); } //场内对标 export function cndb(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //项目对标 export function xmdb(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //线路对标 export function xldb(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //五项损失率 export function wxssl(data) { return request({ baseURL: process.env.VUE_APP_API, 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}`, method: "get", }); } //同环比 export function thb(data) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/cndbthb?companys=${data.companys}&type=${data.type}&wpid=${data.wpids}&pageSize=${data.pageSize}&pageNum=${data.pageNum}`, method: "get", }); } //值际对标 export function zjdb(data) { return request({ baseURL: process.env.VUE_APP_API, url: `/pro-econ-benchmarking-between/zjwxssl?beginDate=${data.beginDate}&endDate=${data.endDate}`, method: "get", }); }