mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
V4.9.5 feature (#4534)
* update doc * add response detail value * fix: filter params
This commit is contained in:
@@ -64,8 +64,6 @@ function OperationLogTable({ Tabs }: { Tabs: React.ReactNode }) {
|
||||
ScrollData: LogScrollData
|
||||
} = useScrollPagination(getOperationLogs, {
|
||||
pageSize: 20,
|
||||
throttleWait: 500,
|
||||
debounceWait: 200,
|
||||
refreshDeps: [searchParams],
|
||||
params: searchParams
|
||||
});
|
||||
@@ -92,10 +90,8 @@ function OperationLogTable({ Tabs }: { Tabs: React.ReactNode }) {
|
||||
|
||||
useEffect(() => {
|
||||
setSearchParams({
|
||||
...(isSelectAllTmb ? {} : { tmbIds: selectedTmbIds.length > 0 ? selectedTmbIds : undefined }),
|
||||
...(isSelectAllEvent
|
||||
? {}
|
||||
: { events: selectedEvents.length > 0 ? selectedEvents : undefined })
|
||||
...(isSelectAllTmb ? {} : { tmbIds: selectedTmbIds }),
|
||||
...(isSelectAllEvent ? {} : { events: selectedEvents })
|
||||
});
|
||||
}, [selectedTmbIds, selectedEvents, isSelectAllTmb, isSelectAllEvent]);
|
||||
|
||||
|
@@ -2,6 +2,7 @@ import { GET, POST, PUT } from '@/web/common/api/request';
|
||||
import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type';
|
||||
import type { OperationListItemType } from '@fastgpt/global/support/operationLog/type';
|
||||
import { OperationLogEventEnum } from '@fastgpt/global/support/operationLog/constants';
|
||||
|
||||
export const getOperationLogs = (
|
||||
props: PaginationProps & {
|
||||
tmbIds?: string[];
|
||||
|
Reference in New Issue
Block a user