From 44c8ccbc94c34d5749b6c7124b14a2672b210b32 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Mon, 18 Mar 2024 10:37:27 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E9=A6=96=E9=A1=B5=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E5=9B=9E=E8=BD=A6=E8=B7=B3=E8=BD=AC=E6=A0=87=E9=A2=98=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/dashboard/modules/FirstStageCard.vue | 14 +++++++++++++-
.../dashboard/modules/SearchAndWarningCard.vue | 14 +++++++++++++-
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/src/views/dashboard/modules/FirstStageCard.vue b/src/views/dashboard/modules/FirstStageCard.vue
index c63e1daa..7e1c8fab 100644
--- a/src/views/dashboard/modules/FirstStageCard.vue
+++ b/src/views/dashboard/modules/FirstStageCard.vue
@@ -11,7 +11,7 @@
-
+
@@ -49,6 +49,18 @@ export default {
}
})
},
+ // 回车跳标题检索
+ searchInputEnter () {
+ const { href } = this.$router.resolve({
+ path: '/generalSearch',
+ query: {
+ type: 'title',
+ resourceType: this.resourceType,
+ searchValue: this.searchValue
+ }
+ })
+ window.open(href, '_blank')
+ },
// 点击跳转到一般检索页
toSearchWindow (type) {
const { href } = this.$router.resolve({
diff --git a/src/views/dashboard/modules/SearchAndWarningCard.vue b/src/views/dashboard/modules/SearchAndWarningCard.vue
index e285fae4..31451305 100644
--- a/src/views/dashboard/modules/SearchAndWarningCard.vue
+++ b/src/views/dashboard/modules/SearchAndWarningCard.vue
@@ -8,7 +8,7 @@
{{ item.title }}
-
+
标题检索
全文检索
高级检索
@@ -137,6 +137,18 @@ export default {
}
})
},
+ // 回车跳标题检索
+ searchInputEnter () {
+ const { href } = this.$router.resolve({
+ path: '/generalSearch',
+ query: {
+ type: 'title',
+ resourceType: this.resourceType,
+ searchValue: this.searchValue
+ }
+ })
+ window.open(href, '_blank')
+ },
// 点击跳转到一般检索页
toSearchWindow (type) {
const { href } = this.$router.resolve({