From 653770e983dc6aaf80d7a7f92aadc3343d2201ab Mon Sep 17 00:00:00 2001 From: moon <2623532423@qq.com> Date: Mon, 22 Sep 2025 15:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=88=86=E6=AE=B5=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=87=92?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=88=86=E6=AE=B5?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat-client/src/api/Segment.ts | 2 +- .../datasets/components/DocumentList.vue | 374 +++++++++--------- .../controller/DocumentSegmentController.java | 11 +- .../postgresql/DifyDocumentSegmentMapper.java | 2 +- .../service/dify/DocumentSegmentService.java | 3 +- .../dify/impl/DocumentSegmentServiceImpl.java | 13 +- .../postgresql/DifyDocumentSegmentMapper.xml | 2 + 7 files changed, 201 insertions(+), 206 deletions(-) diff --git a/chat-client/src/api/Segment.ts b/chat-client/src/api/Segment.ts index 1eb1fa2..be0ec6c 100644 --- a/chat-client/src/api/Segment.ts +++ b/chat-client/src/api/Segment.ts @@ -1,6 +1,6 @@ import request from '@/utils/request' -export function getSegmentList(params: { datasetId: string; documentId: string }) { +export function getSegmentList(params: { datasetId: string; documentId: string; page: number; pageSize: number }) { return request({ url: '/brichat-service/documentSegment/selectSegments', method: 'get', diff --git a/chat-client/src/views/datasets/components/DocumentList.vue b/chat-client/src/views/datasets/components/DocumentList.vue index d4341dc..84d909a 100644 --- a/chat-client/src/views/datasets/components/DocumentList.vue +++ b/chat-client/src/views/datasets/components/DocumentList.vue @@ -88,7 +88,6 @@ :header-row-style="{ height: '50px' }" @selection-change="handleSelectionChange" @row-dblclick="handleRowDoubleClick" - @sort-change="handleSortChange" > - + - - + + - +