From b4494b8196c25917f5b5cf8e9e1228db5c8be2f3 Mon Sep 17 00:00:00 2001
From: WX <1377869194@qq.com>
Date: 星期五, 11 八月 2023 16:27:29 +0800
Subject: [PATCH] 风场功能完善

---
 src/components/dateTimePicker.vue |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

diff --git a/src/components/dateTimePicker.vue b/src/components/dateTimePicker.vue
index cc37748..54ee125 100644
--- a/src/components/dateTimePicker.vue
+++ b/src/components/dateTimePicker.vue
@@ -91,12 +91,12 @@
       value: "",
       fetch: "",
       start: 0,
-      end: 0,
+      end: 30,
     });
     let btnState = false;
     let CS = {
-      start: "",
-      end: "",
+      start: 0,
+      end: 30,
       Classify: "",
     };
     const selectBtn = () => {
@@ -130,10 +130,13 @@
         }
 
         emit("changeTime", { data: newTimeStr, week: week });
-        if (props.tpData == "d2") {
-          if (!btnState) {
-            return ElMessage.error("璇峰厛閫夋嫨椋庡尯");
-          }
+        if (props.tpData == "d21") {
+          menuTool.createFC("sj", newTimeStr);
+        } else if (props.tpData == "d22") {
+          CS.Classify = "West";
+          menuTool.createFC("sj", newTimeStr, CS);
+        } else if (props.tpData == "d23") {
+          CS.Classify = "East";
           menuTool.createFC("sj", newTimeStr, CS);
         } else {
           menuTool.createWRW("sj", newTimeStr);
@@ -141,7 +144,6 @@
       }
     };
     function FQselectBtn() {
-      btnState = true;
       selectform.value = "";
       CS.start = selectform.start;
       CS.end = selectform.end;
@@ -150,7 +152,13 @@
         CS.start = selectform.end;
         CS.end = selectform.start;
       }
-      menuTool.createFC("fc", "", CS);
+      if (props.tpData == "d22") {
+        CS.Classify = "West";
+        menuTool.createFC("fc", "", CS);
+      } else if (props.tpData == "d23") {
+        CS.Classify = "East";
+        menuTool.createFC("fc", "", CS);
+      }
     }
     function changeTime() {}
     return {
@@ -213,6 +221,13 @@
         color: #ffffff;
         padding-right: 10px;
       }
+      i {
+        font-size: 24px;
+        font-weight: 400;
+        color: #ffffff;
+        padding-right: 10px;
+        padding-left: 10px;
+      }
       :deep(.el-date-editor) {
         height: 64px;
       }

--
Gitblit v1.9.3