From c25a519cf814e028a979384a5bcf26acef33562a Mon Sep 17 00:00:00 2001 From: moon <2623532423@qq.com> Date: Tue, 16 Sep 2025 11:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BA=86es=E6=A3=80=E7=B4=A2?= =?UTF-8?q?=E5=92=8C=E5=85=B6=E4=BB=96=E6=A3=80=E7=B4=A2=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E5=85=B6=E8=BF=94=E5=9B=9E=E6=8E=A5=E5=8F=A3=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat-client/src/main.ts | 3 +- .../views/chatweb/intelRetrieval/index.vue | 17 ++- chat-client/types/store.d.ts | 1 + .../controller/KnowledgeBaseController.java | 15 +-- .../bjtds/brichat/entity/dto/RecordDto.java | 14 ++- .../brichat/entity/dto/RetrievalDto.java | 18 +++ .../brichat/entity/esmodel/KnowledgeDoc.java | 1 - .../mapper/opengauss/TUserDatasetMapper.java | 4 + .../service/EsTDatasetFilesService.java | 7 +- .../brichat/service/KnowledgeBaseService.java | 2 +- .../service/impl/EsKnowledgeServiceImpl.java | 4 - .../impl/EsTDatasetFilesServiceImpl.java | 103 ++++++++---------- .../impl/KnowledgeBaseServiceImpl.java | 18 ++- .../brichat/util/EsKnowledgeImporter.java | 1 - .../com/bjtds/brichat/util/RetrievalUtil.java | 15 ++- .../mapper/opengauss/TUserDatasetMapper.xml | 4 + 16 files changed, 122 insertions(+), 105 deletions(-) create mode 100644 chat-server/src/main/java/com/bjtds/brichat/entity/dto/RetrievalDto.java diff --git a/chat-client/src/main.ts b/chat-client/src/main.ts index a9109d2..4b2e42b 100644 --- a/chat-client/src/main.ts +++ b/chat-client/src/main.ts @@ -14,7 +14,6 @@ import { setupRouter } from '@/router' */ import { baseURL, pwa } from './config' import { isExternal } from '@/utils/validate' - const app = createApp(App) if (process.env.NODE_ENV === 'production' && !isExternal(baseURL)) { @@ -56,6 +55,8 @@ if (process.env.NODE_ENV === 'production' && !isExternal(baseURL)) { if (pwa) require('./registerServiceWorker') + + setupVab(app) setupI18n(app) setupStore(app) diff --git a/chat-client/src/views/chatweb/intelRetrieval/index.vue b/chat-client/src/views/chatweb/intelRetrieval/index.vue index abc6491..4355e79 100644 --- a/chat-client/src/views/chatweb/intelRetrieval/index.vue +++ b/chat-client/src/views/chatweb/intelRetrieval/index.vue @@ -69,12 +69,12 @@
+
- @@ -124,7 +124,7 @@ text class="action-btn" @click="handlePreview(result)" - v-if="getSourceUrl(result.segmentDto?.documentDto?.docMetadata || result.source_url)" + v-if="getSourceUrl(result.segmentDto?.documentDto?.docMetadata || result.retrievalDto?.sourceUrl)" > 预览 @@ -134,7 +134,7 @@ text class="action-btn" @click="handleDownload(result)" - v-if="getSourceUrl(result.segmentDto?.documentDto?.docMetadata || result.source_url)" + v-if="getSourceUrl(result.segmentDto?.documentDto?.docMetadata || result.retrievalDto?.sourceUrl)" > 下载 @@ -258,8 +258,7 @@