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({