mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-16 15:45:58 +08:00
feat: dataset filter by parsing status (#7404)
### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/5931 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
77bb7750e9
commit
942b94fc3c
@ -28,6 +28,7 @@ import RenameModal from './rename-modal';
|
||||
import WebCrawlModal from './web-crawl-modal';
|
||||
|
||||
import FileUploadModal from '@/components/file-upload-modal';
|
||||
import { RunningStatus } from '@/constants/knowledge';
|
||||
import { IDocumentInfo } from '@/interfaces/database/document';
|
||||
import { formatDate } from '@/utils/date';
|
||||
import styles from './index.less';
|
||||
@ -159,6 +160,12 @@ const KnowledgeFile = () => {
|
||||
title: t('parsingStatus'),
|
||||
dataIndex: 'run',
|
||||
key: 'run',
|
||||
filters: Object.entries(RunningStatus).map(([key, value]) => ({
|
||||
text: t(`runningStatus${value}`),
|
||||
value: value,
|
||||
})),
|
||||
onFilter: (value: string | number | boolean, record: IDocumentInfo) =>
|
||||
record.run === value,
|
||||
render: (text, record) => {
|
||||
return <ParsingStatusCell record={record}></ParsingStatusCell>;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user