From 9b178c3f200efa15fbfee7aa67d09177bca84d47 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 28 Mar 2025 17:09:43 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/command-center-dashboard

---
 src/views/Home/SearchBox.vue |  132 ++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 128 insertions(+), 4 deletions(-)

diff --git a/src/views/Home/SearchBox.vue b/src/views/Home/SearchBox.vue
index aca7698..591231a 100644
--- a/src/views/Home/SearchBox.vue
+++ b/src/views/Home/SearchBox.vue
@@ -1,13 +1,137 @@
 <script setup>
+const input3 = ref('');
 
+const value = ref('Option1');
+const value2 = ref('Optio44n1');
+
+const options = [
+  {
+    value: 'Option1',
+    label: '机巢',
+  },
+  {
+    value: 'Optio44n1',
+    label: '事件',
+  },
+];
+
+const options1 = [
+  {
+    value: 'Option1',
+    label: '南昌市',
+  },
+  {
+    value: 'Optio44n1',
+    label: '抚州市',
+  },
+];
 </script>
-
 <template>
-   <div>
+  <div class="searchBox">
+    <div class="searchInput">
+      <el-select v-model="value" placeholder="请选择查询">
+        <el-option
+          v-for="item in options"
+          :key="item.value"
+          :label="item.label"
+          :value="item.value"
+        />
+      </el-select>
 
-   </div>
+      <el-input v-model="input3" placeholder="请输入搜索关键字"></el-input>
+    </div>
+    <div class="searchBtn"></div>
+    <div class="region">
+      <el-select v-model="value2" placeholder="请选择查询">
+        <el-option
+          v-for="item in options1"
+          :key="item.value"
+          :label="item.label"
+          :value="item.value"
+        />
+      </el-select>
+    </div>
+  </div>
 </template>
-
 <style scoped lang="scss">
+.searchBox {
+  width: 420px;
+  height: 43px;
+  position: absolute;
+  top: 145px;
+  left: 50%;
+  transform: translateX(-50%);
+  display: flex;
 
+  .el-select {
+    width: 130px;
+    height: 100%;
+
+    :deep() {
+      .el-select__wrapper {
+        background: transparent;
+        border: none;
+        box-shadow: none;
+        height: 100%;
+        padding-left: 20px;
+      }
+
+      .el-select__selected-item {
+        font-family: Source Han Sans CN, Source Han Sans CN, serif;
+        font-weight: 400;
+        font-size: 14px;
+        color: #ffffff;
+        line-height: 18px;
+      }
+    }
+  }
+
+  .searchInput {
+    width: 243px;
+    height: 100%;
+    background: url('@/assets/images/home/searchBox/searchBg1.png') no-repeat center / 100% 100%;
+    display: flex;
+
+    .el-input {
+      height: 100%;
+
+      :deep() {
+        .el-input__wrapper {
+          background: transparent;
+          border: none;
+          box-shadow: none;
+          height: 100%;
+        }
+
+        .el-input__inner {
+          font-family: Source Han Sans CN, Source Han Sans CN, serif;
+          font-weight: 400;
+          font-size: 14px;
+          color: #ffffff;
+          line-height: 18px;
+        }
+      }
+    }
+  }
+
+  .searchBtn {
+    width: 67px;
+    height: 100%;
+    background: url('@/assets/images/home/searchBox/searchBg2.png') no-repeat center / 100% 100%;
+    cursor: pointer;
+  }
+
+  .region {
+    width: 0;
+    flex-grow: 1;
+    background: url('@/assets/images/home/searchBox/searchBg3.png') no-repeat center / 100% 100%;
+
+    :deep() {
+      .el-select__wrapper {
+        width: 100px;
+        padding-left: 20px;
+      }
+    }
+  }
+}
 </style>

--
Gitblit v1.9.3