From a848db4267d49065b3f6a080099f4ebea3e150f0 Mon Sep 17 00:00:00 2001 From: zhangxiaolong Date: Wed, 13 Apr 2022 13:11:16 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1787=20fix=20:=20=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E5=AE=8C=E6=88=90=20=E4=B8=8B=E4=B8=80=E6=AD=A5=E8=87=AA?= =?UTF-8?q?=E6=B5=8B=E4=BB=A5=E5=8F=8A=E4=BF=AE=E6=94=B9=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../css/components/common/timePicker.scss | 23 +- .../src/components/common/timePicker.vue | 460 ++++++++++-------- 2 files changed, 277 insertions(+), 206 deletions(-) diff --git a/nezha-fronted/src/assets/css/components/common/timePicker.scss b/nezha-fronted/src/assets/css/components/common/timePicker.scss index 7330336e3..6846f57d5 100644 --- a/nezha-fronted/src/assets/css/components/common/timePicker.scss +++ b/nezha-fronted/src/assets/css/components/common/timePicker.scss @@ -157,7 +157,7 @@ } .date-range-panel { - height: 450px; + height: 480px; width: 500px; background: #FFFFFF; box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05); @@ -179,14 +179,19 @@ } .content-input { - border: 1px solid #E7EAED; - border-radius: 2px; - width: 230px; - padding: 0 8px; - height: 30px; - line-height: 30px; - margin-bottom: 12px; - outline: #169AFF; + .el-input{ + .el-input__inner{ + border: 1px solid #E7EAED; + border-radius: 2px; + width: 230px; + padding: 0 8px; + height: 30px; + line-height: 30px; + margin-bottom: 12px; + outline: #169AFF; + } + + } } .content-input:focus { diff --git a/nezha-fronted/src/components/common/timePicker.vue b/nezha-fronted/src/components/common/timePicker.vue index 3afc95cc6..1ecdeeec7 100644 --- a/nezha-fronted/src/components/common/timePicker.vue +++ b/nezha-fronted/src/components/common/timePicker.vue @@ -4,7 +4,7 @@ :class="{ 'calendar--small': size === 'small' }" class="calendar" > - + -
To
-
- {{ searchTime[1] }} +
To
+
+ + + +
- Apply time range
@@ -131,11 +136,9 @@ class="date-range-history-item" @click="historyChange(item)" > - - {{bus.timeFormate(item.start)}} + {{ timeFormate(item.start) }} — - {{this.timeFormate(item.end)}} - + {{ timeFormate(item.end) }}
@@ -147,19 +150,18 @@
Relatime time ranges