From 53e5df3a57b0f1604e91ef302dc3f21a772a35b0 Mon Sep 17 00:00:00 2001 From: 3octaves <873551943@qq.com> Date: Fri, 15 Nov 2024 10:01:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=85=A8=E7=AB=99=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E4=BC=98=E5=8C=96=20#7951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/system-search/Index.vue | 93 +++++++-- .../components/FilterTypeSelect.vue | 80 ++++++++ .../search-result/FilterOptions.vue | 4 +- .../components/search-result/Index.vue | 91 +++++++-- .../render-result/ClusterDomain.vue | 17 +- .../render-result/ClusterName.vue | 19 +- .../search-result/render-result/Instance.vue | 25 +-- .../search-result/render-result/Machine.vue | 4 - .../render-result/ResourcePool.vue | 1 - .../search-result/render-result/Task.vue | 4 - .../search-result/render-result/Ticket.vue | 4 - dbm-ui/frontend/src/locales/zh-cn.json | 5 + .../src/services/source/quickSearch.ts | 8 +- .../frontend/src/views/quick-search/Index.vue | 79 ++++---- .../quick-search/components/SearchInput.vue | 177 ++++++++++++------ 15 files changed, 435 insertions(+), 176 deletions(-) create mode 100644 dbm-ui/frontend/src/components/system-search/components/FilterTypeSelect.vue diff --git a/dbm-ui/frontend/src/components/system-search/Index.vue b/dbm-ui/frontend/src/components/system-search/Index.vue index c31ad7afba..2911e0e847 100644 --- a/dbm-ui/frontend/src/components/system-search/Index.vue +++ b/dbm-ui/frontend/src/components/system-search/Index.vue @@ -23,11 +23,18 @@ v-model="serach" class="search-input" clearable - :placeholder="t('全站搜索 Ctrl + K')" + :placeholder="t('全站搜索,支持多对象,Enter开启搜索')" :type="isFocused ? 'text' : 'search'" @enter="handleEnter" @focus="handleFocus" @paste="handlePaste"> + + diff --git a/dbm-ui/frontend/src/components/system-search/components/search-result/FilterOptions.vue b/dbm-ui/frontend/src/components/system-search/components/search-result/FilterOptions.vue index 4baec09f6a..48d679e208 100644 --- a/dbm-ui/frontend/src/components/system-search/components/search-result/FilterOptions.vue +++ b/dbm-ui/frontend/src/components/system-search/components/search-result/FilterOptions.vue @@ -85,7 +85,7 @@ -
+