From ac478242e0ecb50b23b2e91c0541f9ceae2dccf6 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期五, 25 四月 2025 16:59:37 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase

---
 src/views/home/components/searchBox.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/views/home/components/searchBox.vue b/src/views/home/components/searchBox.vue
index b27a855..86497ad 100644
--- a/src/views/home/components/searchBox.vue
+++ b/src/views/home/components/searchBox.vue
@@ -36,20 +36,29 @@
         { value: "abstract", label: "鎽樿" },
         { value: "source", label: "鏉ユ簮" },
       ],
+      searchFun: {
+        type: Function,
+        default: () => {},
+      },
     },
   },
   data() {
     return {
       searchText: "", // 杈撳叆妗嗗唴瀹�
-      selectedType: "", // 涓嬫媺妗嗛�変腑鍊�
+      selectedType: "all", // 涓嬫媺妗嗛�変腑鍊�
     };
   },
   methods: {
     // 鎼滅储澶勭悊
     handleSearch() {
+    // 鎵惧埌閫変腑鐨勯�夐」鐨刲abel
+    const selectedOption = this.options.find(option => option.value === this.selectedType);
+    const selectedLabel = selectedOption ? selectedOption.label : '';
+    console.log(selectedLabel,"001")
       this.$emit("search", {
         text: this.searchText,
         type: this.selectedType,
+        label: selectedLabel 
       });
     },
   },
@@ -67,16 +76,17 @@
 
 /* 杈撳叆妗嗘牱寮� */
 .search-input {
-  background-color:transparent;
+  width: 100%;
 
 }
 
 .inputBox {
-  border: 1px solid #B9A587;
+  border: 1px solid #b9a587;
   height: 38px;
   width: 400px;
   display: flex;
   justify-content: space-between;
+  background-color: transparent !important;
   align-items: center;
   padding-right: 5px;
   border-radius: 5px;
@@ -89,6 +99,7 @@
   width: 70px;
   height: 30px;
   background-color: #937950;
+  border-radius: 5px;
   margin-left: 10px;
   cursor: pointer;
   font-size: 14px;
@@ -106,10 +117,9 @@
 .el-select /deep/ .el-input__inner {
   border-top-right-radius: 0;
   border-bottom-right-radius: 0;
-  border: 1px solid #B9A587;
+  border: 1px solid #b9a587;
   background-color: transparent;
   border-right: none;
-
 }
 
 .el-input-group__prepend {

--
Gitblit v1.9.1