lining 3 yıl önce
ebeveyn
işleme
292f77abb2
2 değiştirilmiş dosya ile 965 ekleme ve 821 silme
  1. 26 0
      src/api/index.js
  2. 939 821
      src/components/control/areaCard.vue

+ 26 - 0
src/api/index.js

@@ -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,
 };
 };

Dosya farkı çok büyük olduğundan ihmal edildi
+ 939 - 821
src/components/control/areaCard.vue