|
@@ -149,6 +149,29 @@ const getLatest = (data) => {
|
|
method: "get",
|
|
method: "get",
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+//获取智能模式下场站
|
|
|
|
+const getControlType = () => {
|
|
|
|
+ return request({
|
|
|
|
+ baseURL:process.env.VUE_APP_API,
|
|
|
|
+ url: `/api/station/status`,
|
|
|
|
+ method: "get",
|
|
|
|
+ });
|
|
|
|
+};
|
|
|
|
+const uodateControlType = (data) => {
|
|
|
|
+ return request({
|
|
|
|
+ baseURL:process.env.VUE_APP_API,
|
|
|
|
+ url: `/api/station/status/update?stationid=${data.stationid}&type=${data.type}&userName=${data.userName}`,
|
|
|
|
+ method: "get",
|
|
|
|
+ });
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+const getWindturbineFdc = () => {
|
|
|
|
+ return request({
|
|
|
|
+ baseURL:process.env.VUE_APP_API,
|
|
|
|
+ url: `/api/windturbine/fdc`,
|
|
|
|
+ method: "get",
|
|
|
|
+ });
|
|
|
|
+};
|
|
export default {
|
|
export default {
|
|
login,
|
|
login,
|
|
getSnap,
|
|
getSnap,
|
|
@@ -170,4 +193,7 @@ export default {
|
|
getOriginalWindturbinePower,
|
|
getOriginalWindturbinePower,
|
|
controlRecord,
|
|
controlRecord,
|
|
getLatest,
|
|
getLatest,
|
|
|
|
+ getControlType,
|
|
|
|
+ uodateControlType,
|
|
|
|
+ getWindturbineFdc,
|
|
};
|
|
};
|