22<div class =" database-info-container" >
33 <FileDetailModal />
44
5+ <!-- 检索配置弹窗 -->
6+ <SearchConfigModal
7+ v-model =" searchConfigModalVisible"
8+ :database-id =" databaseId"
9+ @save =" handleSearchConfigSave"
10+ />
11+
512 <FileUploadModal
613 v-model:visible =" addFilesModalVisible"
714 :folder-tree =" folderTree"
2330
2431 <div class =" right-panel" :style =" { width: (100 - leftPanelWidth) + '%', display: store.state.rightPanelVisible ? 'flex' : 'none' }" >
2532 <a-tabs v-model:activeKey =" activeTab" class =" knowledge-tabs" :tabBarStyle =" { margin: 0, padding: '0 16px' }" >
33+ <template #tabBarExtraContent >
34+ <a-tooltip title =" 检索配置" placement =" bottom" >
35+ <a-button
36+ type =" text"
37+ class =" config-btn"
38+ @click =" openSearchConfigModal"
39+ >
40+ <SettingOutlined />
41+ </a-button >
42+ </a-tooltip >
43+ </template >
2644 <a-tab-pane key =" graph" tab =" 知识图谱" v-if =" isGraphSupported" >
2745 <KnowledgeGraphSection
2846 :visible =" true"
@@ -96,6 +114,7 @@ import { useRoute } from 'vue-router';
96114import { useDatabaseStore } from ' @/stores/database' ;
97115import { useTaskerStore } from ' @/stores/tasker' ;
98116import { Info } from ' lucide-vue-next' ;
117+ import { SettingOutlined } from ' @ant-design/icons-vue' ;
99118import KnowledgeBaseCard from ' @/components/KnowledgeBaseCard.vue' ;
100119import FileTable from ' @/components/FileTable.vue' ;
101120import FileDetailModal from ' @/components/FileDetailModal.vue' ;
@@ -105,6 +124,7 @@ import QuerySection from '@/components/QuerySection.vue';
105124import MindMapSection from ' @/components/MindMapSection.vue' ;
106125import RAGEvaluationTab from ' @/components/RAGEvaluationTab.vue' ;
107126import EvaluationBenchmarks from ' @/components/EvaluationBenchmarks.vue' ;
127+ import SearchConfigModal from ' @/components/SearchConfigModal.vue' ;
108128
109129const route = useRoute ();
110130const store = useDatabaseStore ();
@@ -189,6 +209,18 @@ const leftPanelWidth = ref(50);
189209const isDragging = ref (false );
190210const resizeHandle = ref (null );
191211
212+ // 检索配置弹窗
213+ const searchConfigModalVisible = ref (false );
214+
215+ const handleSearchConfigSave = () => {
216+ store .getDatabaseInfo ();
217+ };
218+
219+ // 打开检索配置弹窗
220+ const openSearchConfigModal = () => {
221+ searchConfigModalVisible .value = true ;
222+ };
223+
192224// 添加文件弹窗
193225const addFilesModalVisible = ref (false );
194226const currentFolderId = ref (null );
@@ -495,6 +527,29 @@ const handleMouseUp = () => {
495527 // background-color: var(--gray-0);
496528 border- bottom: 1px solid var (-- gray- 200 );
497529 }
530+
531+ : deep (.ant - tabs - extra - content ) {
532+ display: flex;
533+ align- items: center;
534+ height: 100 % ;
535+ }
536+ }
537+
538+ .config - btn {
539+ color: var (-- gray- 500 );
540+ font- size: 16px ;
541+ display: flex;
542+ align- items: center;
543+ justify- content: center;
544+ width: 32px ;
545+ height: 32px ;
546+ border- radius: 6px ;
547+ transition: all 0 .2s ;
548+
549+ & : hover {
550+ color: var (-- main- color);
551+ background- color: var (-- gray- 100 );
552+ }
498553}
499554
500555
0 commit comments