|
@@ -2,102 +2,111 @@ import request from "@/tools/request";
|
|
|
|
|
|
//获取拟合id
|
|
|
export function getPowerFittingId(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: "new/power/fitting/data",
|
|
|
- method: "get",
|
|
|
- params: data,
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: "new/power/fitting/data",
|
|
|
+ method: "get",
|
|
|
+ params: data,
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//获取拟合曲线
|
|
|
export function getPowerFittingChart(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `new/power/fitting/curve?id=${data.id}`,
|
|
|
- method: "get",
|
|
|
- timeout: 15000,
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `new/power/fitting/curve?id=${data.id}`,
|
|
|
+ method: "get",
|
|
|
+ timeout: 15000,
|
|
|
+ });
|
|
|
}
|
|
|
//获取表格数据
|
|
|
export function getPowerFittingTable(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `new/power/fitting/show?id=${data.id}`,
|
|
|
- method: "get",
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `new/power/fitting/show?id=${data.id}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
//获取圈选散点数据
|
|
|
export function getPowerFittingSelectedChart(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `new/power/fitting/filter?yk=${data.yk}&wk=${data.wk}`,
|
|
|
- method: "get",
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `new/power/fitting/filter?yk=${data.yk}&wk=${data.wk}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
//获取光伏圈选散点数据
|
|
|
export function getPowerFittingSelectedChartGF(data) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `/photovol/filter?yk=${data.yk}&wk=${data.wk}`,
|
|
|
- method: "get",
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `/photovol/filter?yk=${data.yk}&wk=${data.wk}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+export function getWindFittingAlarms(data) {
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: "/new/power/fitting/alarms",
|
|
|
+ method: "post",
|
|
|
+ data: data,
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
// 获取光伏电站设备
|
|
|
export function getIntervers({ wpids }) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `photovol/wtByWplist?wpids=${wpids}`,
|
|
|
- method: "get",
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `photovol/wtByWplist?wpids=${wpids}`,
|
|
|
+ method: "get",
|
|
|
+ });
|
|
|
}
|
|
|
//获取光伏功率拟合图表数据
|
|
|
export function getPowerFittingChartGF({
|
|
|
- station,
|
|
|
- inverters,
|
|
|
- startdate,
|
|
|
- enddate,
|
|
|
+ station,
|
|
|
+ inverters,
|
|
|
+ startdate,
|
|
|
+ enddate,
|
|
|
}) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `/photovol/notfile/powertimefile?station=${station}&inverters=${inverters}&startdate=${startdate}&enddate=${enddate}`,
|
|
|
- method: "get",
|
|
|
- timeout: 30000,
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `/photovol/notfile/powertimefile?station=${station}&inverters=${inverters}&startdate=${startdate}&enddate=${enddate}`,
|
|
|
+ method: "get",
|
|
|
+ timeout: 30000,
|
|
|
+ });
|
|
|
}
|
|
|
//获取光伏功率光照图表数据
|
|
|
export function getPowerHotChartGF({
|
|
|
- station,
|
|
|
- inverters,
|
|
|
- startdate,
|
|
|
- enddate,
|
|
|
- interval,
|
|
|
- maxs,
|
|
|
- mins,
|
|
|
- maxpower,
|
|
|
- minpower,
|
|
|
+ station,
|
|
|
+ inverters,
|
|
|
+ startdate,
|
|
|
+ enddate,
|
|
|
+ interval,
|
|
|
+ maxs,
|
|
|
+ mins,
|
|
|
+ maxpower,
|
|
|
+ minpower,
|
|
|
}) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `/photovol/curve?station=${station}&inverters=${inverters}&startdate=${startdate}&enddate=${enddate}&interval=${interval}&maxs=${maxs}&mins=${mins}&maxpower=${maxpower}&minpower=${minpower}`,
|
|
|
- method: "get",
|
|
|
- // timeout: 9000,
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `/photovol/curve?station=${station}&inverters=${inverters}&startdate=${startdate}&enddate=${enddate}&interval=${interval}&maxs=${maxs}&mins=${mins}&maxpower=${maxpower}&minpower=${minpower}`,
|
|
|
+ method: "get",
|
|
|
+ // timeout: 9000,
|
|
|
+ });
|
|
|
}
|
|
|
//光伏性能评价
|
|
|
export function getApiequipmentinfoDayListGf(params) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `photovoltaic/analysis?stationId=${params.stationId}&time=${params.time}&timeType=${params.timeType}&pageSize=${params.pageSize}&pageNum=${params.pageNum}`,
|
|
|
- method: "GET",
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `photovoltaic/analysis?stationId=${params.stationId}&time=${params.time}&timeType=${params.timeType}&pageSize=${params.pageSize}&pageNum=${params.pageNum}`,
|
|
|
+ method: "GET",
|
|
|
+ });
|
|
|
}
|
|
|
//光伏离散率分析
|
|
|
export function getApiLslfxGf(params) {
|
|
|
- return request({
|
|
|
- baseURL: process.env.VUE_APP_TEST,
|
|
|
- url: `photovoltaic/analysis/inverter?stationId=${params.stationId}&time=${params.time}&timeType=${params.timeType}&pageSize=${params.pageSize}&pageNum=${params.pageNum}`,
|
|
|
- method: "GET",
|
|
|
- });
|
|
|
+ return request({
|
|
|
+ baseURL: process.env.VUE_APP_TEST,
|
|
|
+ url: `photovoltaic/analysis/inverter?stationId=${params.stationId}&time=${params.time}&timeType=${params.timeType}&pageSize=${params.pageSize}&pageNum=${params.pageNum}`,
|
|
|
+ method: "GET",
|
|
|
+ });
|
|
|
}
|