Skip to content

Commit d33dd45

Browse files
fix: fix bug
1 parent e1a12c8 commit d33dd45

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ui/src/views/knowledge-workflow/component/execution-record/ExecutionRecordDrawer.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,30 @@ const next_disable = computed(() => {
190190
const index = tableIndexMap.value[currentId.value] + 1
191191
return index >= data.value.length && index >= paginationConfig.total - 1
192192
})
193+
194+
const setRowClass = ({ row }: any) => {
195+
return currentId.value === row?.id ? 'highlight' : ''
196+
}
197+
198+
/**
199+
* 下一页
200+
*/
201+
const nextRecord = () => {
202+
const index = tableIndexMap.value[currentId.value] + 1
203+
if (index >= data.value.length) {
204+
if (index >= paginationConfig.total - 1) {
205+
return
206+
}
207+
paginationConfig.current_page = paginationConfig.current_page + 1
208+
getList().then(() => {
209+
currentId.value = data.value[index].id
210+
currentContent.value = data.value[index]
211+
})
212+
} else {
213+
currentId.value = data.value[index].id
214+
currentContent.value = data.value[index]
215+
}
216+
}
193217
/**
194218
* 上一页
195219
*/

0 commit comments

Comments
 (0)