File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
ui/src/views/knowledge-workflow/component/execution-record Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments