From 6f60a25b5a58e2031940eb8a1ec9b654b94b069a Mon Sep 17 00:00:00 2001 From: moon <2623532423@qq.com> Date: Thu, 18 Sep 2025 18:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E6=AE=B5=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=9C=A8=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E5=BA=93=E6=9F=A5=E7=9C=8B=E6=96=87=E4=BB=B6=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=9C=8B=E5=88=B0=E5=85=B6=E5=88=86=E6=AE=B5=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=B8=8E=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat-client/src/api/Segment.ts | 9 + .../datasets/components/DocumentList.vue | 514 +++++++++++------- .../controller/DocumentSegmentController.java | 29 + .../postgresql/DifyDocumentSegmentMapper.java | 13 + .../service/dify/DocumentSegmentService.java | 10 + .../dify/impl/DocumentSegmentServiceImpl.java | 22 + .../postgresql/DifyDocumentSegmentMapper.xml | 15 + 7 files changed, 414 insertions(+), 198 deletions(-) create mode 100644 chat-client/src/api/Segment.ts create mode 100644 chat-server/src/main/java/com/bjtds/brichat/controller/DocumentSegmentController.java create mode 100644 chat-server/src/main/java/com/bjtds/brichat/mapper/postgresql/DifyDocumentSegmentMapper.java create mode 100644 chat-server/src/main/java/com/bjtds/brichat/service/dify/DocumentSegmentService.java create mode 100644 chat-server/src/main/java/com/bjtds/brichat/service/dify/impl/DocumentSegmentServiceImpl.java create mode 100644 chat-server/src/main/resources/com/bjtds/brichat/mapper/postgresql/DifyDocumentSegmentMapper.xml diff --git a/chat-client/src/api/Segment.ts b/chat-client/src/api/Segment.ts new file mode 100644 index 0000000..1eb1fa2 --- /dev/null +++ b/chat-client/src/api/Segment.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function getSegmentList(params: { datasetId: string; documentId: string }) { + return request({ + url: '/brichat-service/documentSegment/selectSegments', + method: 'get', + params, + }) +} diff --git a/chat-client/src/views/datasets/components/DocumentList.vue b/chat-client/src/views/datasets/components/DocumentList.vue index 8e0677a..5ff6a8c 100644 --- a/chat-client/src/views/datasets/components/DocumentList.vue +++ b/chat-client/src/views/datasets/components/DocumentList.vue @@ -2,9 +2,9 @@
-
- {{t('vabI18n.knowledge.document.buttons.batchDelete', { count: selectedRows.length })}} {{t('vabI18n.knowledge.document.buttons.refresh')}} - + {{t('vabI18n.knowledge.document.buttons.upload')}}
@@ -90,9 +90,9 @@ @row-dblclick="handleRowDoubleClick" > -