From 34c4d498b69f746b98ff71afa14a9804e43afcf8 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 25 四月 2025 16:55:06 +0800
Subject: [PATCH] 学术成果检索

---
 src/views/home/components/searchBox.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/views/home/components/searchBox.vue b/src/views/home/components/searchBox.vue
index b27a855..f0fcdd5 100644
--- a/src/views/home/components/searchBox.vue
+++ b/src/views/home/components/searchBox.vue
@@ -41,15 +41,20 @@
   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,7 +72,7 @@
 
 /* 杈撳叆妗嗘牱寮� */
 .search-input {
-  background-color:transparent;
+  width: 100%;
 
 }
 
@@ -77,6 +82,7 @@
   width: 400px;
   display: flex;
   justify-content: space-between;
+  background-color: transparent !important;
   align-items: center;
   padding-right: 5px;
   border-radius: 5px;
@@ -89,6 +95,7 @@
   width: 70px;
   height: 30px;
   background-color: #937950;
+  border-radius: 5px;
   margin-left: 10px;
   cursor: pointer;
   font-size: 14px;

--
Gitblit v1.9.1