import request from "@/tools/request"; // 获取公司列表 export function getApicompanyslist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/benchmarking/companys", method: "GET", }); } // 获取场站列表 export function getApiwpByCplistlist(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/wpByCplist?companyids=${params.companyid}&type=${params.type}`, method: "GET", }); } // 获取期次列表 export function getApipjByWplist(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/pjByWplist?wpids=${params.wpids}`, method: "GET", }); } // 获取线路列表 export function getApilnByPjlist(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/benchmarking/lnByPjlist?pjids=${params.pjids}`, method: "GET", }); } // 获取风机列表 export function getApiequipmentList(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/pro-basic-equipment/equipment-list?companyId=${params.companyId}&windpowerstationIds=${params.wpIds}&projectIds=${params.projectIds}&lineIds=${params.lineIds}&type=${params.type}`, method: "GET", }); } // 通过场站获取风机列表 export function getApiequipmentListByWp(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/pro-basic-equipment/equipmentsByWpid?wpid=${params.wpid}`, method: "GET", }); } // 通过升压站获取风机列表 export function getApiWeatherstation() { return request({ baseURL: process.env.VUE_APP_API, url: `weatherstation/queryall`, method: "GET", }); } // ------------------------------------------------------单机性能分析--------------------------------------------------------------------- // 获取单机性能总览------列表 export function getApiwindturbinegoodnesslist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/goodness/windturbinegoodness", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机性能总览------光伏列表 export function getApiwindturbinegoodnesslistGf(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/pvgoodness?wpid=${params.wpId}&recorddate=${params.recorddate}&companys=${params.cmId}&target=''&sort=''`, method: "GET", }); } // 获取单机性能总览------历史列表 export function getApihistorywindturbinegoodnesslist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/goodness/goodhistorylist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机性能总览------光伏历史列表 export function getApihistorywindturbinegoodnesslistGf(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/pvgoodnesshis?wpid=${params.wpId}&beginDate=${params.beginDate}&wtid=${params.wtId}&target=''&sort=''&endDate=${params.endDate}`, method: "GET", }); } // 获取单机性能详情------查询功率曲线数据信息 export function getApifindWtRealPowerChar(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/findWtRealPowerChar?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } // 获取单机性能详情------获得曲线区间区分功能数据 export function getApigetplotBands(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/getplotBands?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } // 获取单机性能详情------获取区域弹出列表信息 export function getApiplotBandAjax(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/plotBandAjax?beginDate=${params.beginDate}&endDate=${params.endDate}&wtId=${params.wtId}`, method: "GET", }); } // 获取单机性能详情------获取风场风机玫瑰图 export function getApiComMGTWP(params) { return request({ baseURL: process.env.VUE_APP_API, url: `${params.url}?recorddate=${params.recorddate}&wpId=${params.wpId}`, method: "GET", }); } export function getApiComMGTWT(params) { return request({ baseURL: process.env.VUE_APP_API, url: `${params.url}?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } export function getApiComPie(params) { return request({ baseURL: process.env.VUE_APP_API, url: `${params.url}?recorddate=${params.recorddate}&wtId=${params.wtId}&type=${params.type}`, method: "GET", }); } // 获取单机性能详情------获取24小时功率曲线 export function getApifindRealPowerCharBy24(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/findRealPowerCharBy24?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } // 获取单机性能详情------单台风机当日报警记录 export function getApibjjllist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/goodness/bjjllist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机性能详情------单台风机当日故障停机记录 export function getApigzjllist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/goodness/gzjllist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机性能详情------单台风机当日限电记录 export function getApixdjllist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/goodness/xdjllist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机性能详情------查询明细页面显示信息 export function getApiwadAjax(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/wadAjax?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } // 获取单机性能详情------单台风机当月报警排行 export function getApibjphlist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/goodness/bjphlist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机性能详情------获取明细页面功率曲线 export function getApiglchat(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/glchat?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } // 获取单机性能详情------获取风机风资源 export function getApifjfzy(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/goodness/fjfzy?recorddate=${params.recorddate}&wtId=${params.wtId}`, method: "GET", }); } // ------------------------------------------------------单机月度分析--------------------------------------------------------------------- // 获取单机月度分析数据------列表 export function getApisingleanalysisMainlist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/singleanalysis/singleanalysisMain", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取单机月度分析数据------查询单机性能分析子页面 export function getApisingleanalysisSub(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/singleanalysis/singleanalysisSub", method: "GET", params, }); } // 单机信息总览图表接口(3个) 发电量和风速、五项损失、静风频率和待机时间 export function getApisingleanalysisChart(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/singleanalysis/singleanalysisChart", method: "GET", params, }); } // ------------------------------------------------------切入切出分析--------------------------------------------------------------------- // 获取切入切出管理------列表 export function getApioutputSpeedlist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/outputspeed/outputSpeedlist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // 获取切入切出管理------历史列表 export function getApioutputSpeedhistorylist(params) { return request({ baseURL: process.env.VUE_APP_API, url: "/outputspeed/outputspeedhistorylist", method: "POST", headers: { "content-type": "application/x-www-form-urlencoded", // FormData格式传参 }, params, }); } // ------------------------------------------------------------单机对标------------------------------------------------------------------------ // 单机横向对比列表 export function getApiequipmentPerformaCompare(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/performa-compare/equipment-performa-compare?type=${params.type}&dateType=${params.dateType}&windturbineIds=${params.wtIds}&date=${params.date}`, method: "GET", }); } // 单机横向对比echarts export function getApicurveFitting(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/performa-compare/curve-fitting?windturbineIds=${params.wtIds}`, method: "GET", }); } // ------------------------------------------------------------等级评估------------------------------------------------------------------------ export function getApiequipmentinfoDayList(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-list?companyId=${params.companyId}&date=${params.date}&staType=${params.staType}&types=${params.types}&type=${params.type}&windpowerstationId=${params.wpId}&pageNum=${params.pageNum}&pageSize=${params.pageSize}`, method: "GET", }); } export function getApiequipmentinfoDayHistoryList(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-history-list?beginDate=${params.beginDate}&endDate=${params.endDate}&types=${params.types}&windturbineId=${params.wtId}`, method: "GET", }); } export function getApiequipmentinfoDayCompareList(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/pro-econ-equipment-info-day-top/equipmentinfo-day-compare-list?ids=${params.oid}&ids=${params.tid}&types=${params.types}`, // url: '/pro-econ-equipment-info-day-top/equipmentinfo-day-compare-list?ids=1595968732880998402&ids=1595968732939718671&types=1', method: "GET", }); } // ------------------------------------------------------------功率曲线拟合------------------------------------------------------------------------ export function getApiPerformancecurvefitting(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/performance/curvefitting?dateType=${params.dateType}&type=${params.type}&windturbineIds=${params.wtId}`, method: "GET", }); } // ------------------------------------------------------------综合分析------------------------------------------------------------------------ export function getApimaintoplist(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/specific/maintoplist?companys=${params.companys}&type=${params.type}&month=${params.month}`, method: "GET", }); } export function getApimaincenterlist(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/specific/maincenterlist?companys=${params.companys}&type=${params.type}&month=${params.month}`, method: "GET", }); } //查询电量分析 export function getMonthElectricAnalyse(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/electricity/statistics?wpId=${params.wpId}&timetype=month`, method: "GET", }); } //查询逆变器电量分析 export function getMonthElectricAnalyseGf(params) { return request({ baseURL: process.env.VUE_APP_API, url: `/electricity/coulometric?wpId=${params.wpId}`, method: "GET", }); }