From d33dd458cfd942c76b6d31de97599201c30a1308 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 8 Dec 2025 19:28:20 +0800 Subject: [PATCH] fix: fix bug --- .../ExecutionRecordDrawer.vue | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ui/src/views/knowledge-workflow/component/execution-record/ExecutionRecordDrawer.vue b/ui/src/views/knowledge-workflow/component/execution-record/ExecutionRecordDrawer.vue index e2aa4a76f..0e3d9ce0e 100644 --- a/ui/src/views/knowledge-workflow/component/execution-record/ExecutionRecordDrawer.vue +++ b/ui/src/views/knowledge-workflow/component/execution-record/ExecutionRecordDrawer.vue @@ -190,6 +190,30 @@ const next_disable = computed(() => { const index = tableIndexMap.value[currentId.value] + 1 return index >= data.value.length && index >= paginationConfig.total - 1 }) + +const setRowClass = ({ row }: any) => { + return currentId.value === row?.id ? 'highlight' : '' +} + +/** + * 下一页 + */ +const nextRecord = () => { + const index = tableIndexMap.value[currentId.value] + 1 + if (index >= data.value.length) { + if (index >= paginationConfig.total - 1) { + return + } + paginationConfig.current_page = paginationConfig.current_page + 1 + getList().then(() => { + currentId.value = data.value[index].id + currentContent.value = data.value[index] + }) + } else { + currentId.value = data.value[index].id + currentContent.value = data.value[index] + } +} /** * 上一页 */