mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-17 02:35:59 +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 WebCrawlModal from './web-crawl-modal';
|
||||||
|
|
||||||
import FileUploadModal from '@/components/file-upload-modal';
|
import FileUploadModal from '@/components/file-upload-modal';
|
||||||
|
import { RunningStatus } from '@/constants/knowledge';
|
||||||
import { IDocumentInfo } from '@/interfaces/database/document';
|
import { IDocumentInfo } from '@/interfaces/database/document';
|
||||||
import { formatDate } from '@/utils/date';
|
import { formatDate } from '@/utils/date';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
@ -159,6 +160,12 @@ const KnowledgeFile = () => {
|
|||||||
title: t('parsingStatus'),
|
title: t('parsingStatus'),
|
||||||
dataIndex: 'run',
|
dataIndex: 'run',
|
||||||
key: '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) => {
|
render: (text, record) => {
|
||||||
return <ParsingStatusCell record={record}></ParsingStatusCell>;
|
return <ParsingStatusCell record={record}></ParsingStatusCell>;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user