|
@@ -1,119 +1,120 @@
|
|
|
-import request from '@/tools/request'
|
|
|
+import request from "@/tools/request";
|
|
|
|
|
|
//获取场站
|
|
|
export function getStation(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_Matrix,
|
|
|
- url: `/benchmarking/wpByCplist?companyids=${data.companyids}&type=${data.type || '-1'}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ url: `/benchmarking/wpByCplist?companyids=${data.companyids}&type=${
|
|
|
+ data.type || "-1"
|
|
|
+ }`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//获取项目
|
|
|
export function getProject(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_Matrix,
|
|
|
- url: `/benchmarking/pjByWplist?wpids=${data.wpids}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ url: `/benchmarking/pjByWplist?wpids=${data.wpids}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//获取线路
|
|
|
export function getLine(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_Matrix,
|
|
|
- url: `/benchmarking/lnByPjlist?pjids=${data.pjids}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ url: `/benchmarking/lnByPjlist?pjids=${data.pjids}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//风机绩效榜
|
|
|
export function performance(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_Matrix,
|
|
|
- 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',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- 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',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- url: `/benchmarking/cjdb?companys=${data.companys}&type=${data.type}&wpids=${data.wpids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- url: `/benchmarking/details?id=${data.id}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- url: `/benchmarking/cndb?companys=${data.companys}&type=${data.type}&wpid=${data.wpids}&beginDate=${data.beginDate}&endDate=${data.endDate}&target=${data.target}&sort=${data.sort}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- 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}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- 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}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- 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',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- url: `/benchmarking/cndbthb?companys=${data.companys}&type=${data.type}&wpid=${data.wpids}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ 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_Matrix,
|
|
|
- url: `/pro-econ-benchmarking-between/zjwxssl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
|
|
|
- method: 'get',
|
|
|
- })
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_Matrix,
|
|
|
+ url: `/pro-econ-benchmarking-between/zjwxssl?beginDate=${data.beginDate}&endDate=${data.endDate}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
-
|