From f3a8b27eb23c940dcd67bd459b76b0457fcb8b46 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 13 Jun 2024 13:29:49 +0800
Subject: [PATCH] fix: 样式修改

---
 src/components/Wind/Map.vue |   47 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/src/components/Wind/Map.vue b/src/components/Wind/Map.vue
index 082c2ef..f66f6b1 100644
--- a/src/components/Wind/Map.vue
+++ b/src/components/Wind/Map.vue
@@ -28,7 +28,19 @@
           alt=""
           @click="turnState"
         >
-        <span class="text_Time">{{ dateFormat }}</span>
+        <span class="text_Time">
+          <el-date-picker
+            v-model="selectData"
+            popper-class="tpc"
+            value-format="yyyy-MM-dd HH"
+            format="yyyy-MM-dd HH"
+            :clearable="false"
+            :editable="false"
+            type="datetime"
+            placeholder="������������������"
+            @change="changeData"
+          />
+        </span>
         <img
           class="drop-icon"
           :src="turnImg"
@@ -507,6 +519,7 @@
       turnImg: require('@/assets/images/regionalOverview/dropDown.png'),
       showOrHidden: true,
       dateFormat: '',
+      selectData: new Date(),
       alarmTableVisible: false,
       chooseTimeInfo: false, // ������������������������
       chooseTime: false,
@@ -1968,6 +1981,11 @@
       // })
       window.map = map
     },
+    changeData (val) {
+      this.nyr = val + ':00'
+      this.chooseTime = true
+      this.initData()
+    },
     // ������������������������
     change (index) {
       this.changeColor = index
@@ -2437,11 +2455,36 @@
   margin-top: 9px;
   margin-left: 10px;
 }
-
 .text_Time {
   float: left;
   margin-left: 37px;
+  .el-date-editor{
+    width: 145px!important;
+    .el-input__prefix{
+      display: none!important;
+    }
+    .el-input__inner{
+      cursor: pointer;
+      font-size: 18px;
+      color: #fff;
+      padding: 0px!important;
+      border: none;
+      background: inherit;
+
+    }
+  }
 }
+.tpc{
+  left: unset!important;
+  right: 60px;
+}
+.tpc .el-time-spinner__wrapper {
+  width:100% !important;
+}
+.tpc .el-scrollbar:nth-of-type(2) {
+  display: none !important;
+}
+
 .my-div-icon {
   font-size: 14px;
   text-align: center;

--
Gitblit v1.8.0