mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 02:15:52 +08:00
### What problem does this PR solve? feat: Hide KnowledgeGraphModal #162 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
3a739e3dd7
commit
3f21603558
@ -22,7 +22,7 @@ import React, { useEffect, useMemo } from 'react';
|
|||||||
import { useFetchParserListOnMount } from './hooks';
|
import { useFetchParserListOnMount } from './hooks';
|
||||||
|
|
||||||
import { useTranslate } from '@/hooks/common-hooks';
|
import { useTranslate } from '@/hooks/common-hooks';
|
||||||
import EntityTypesForm from '../entity-types-form';
|
import EntityTypesItem from '../entity-types-item';
|
||||||
import LayoutRecognize from '../layout-recognize';
|
import LayoutRecognize from '../layout-recognize';
|
||||||
import ParseConfiguration, {
|
import ParseConfiguration, {
|
||||||
showRaptorParseConfiguration,
|
showRaptorParseConfiguration,
|
||||||
@ -272,7 +272,7 @@ const ChunkMethodModal: React.FC<IProps> = ({
|
|||||||
{showRaptorParseConfiguration(selectedTag) && (
|
{showRaptorParseConfiguration(selectedTag) && (
|
||||||
<ParseConfiguration></ParseConfiguration>
|
<ParseConfiguration></ParseConfiguration>
|
||||||
)}
|
)}
|
||||||
{showEntityTypes && <EntityTypesForm></EntityTypesForm>}
|
{showEntityTypes && <EntityTypesItem></EntityTypesItem>}
|
||||||
</Form>
|
</Form>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
@ -10,7 +10,7 @@ const initialEntityTypes = [
|
|||||||
'time',
|
'time',
|
||||||
];
|
];
|
||||||
|
|
||||||
const EntityTypesForm = () => {
|
const EntityTypesItem = () => {
|
||||||
const { t } = useTranslate('knowledgeConfiguration');
|
const { t } = useTranslate('knowledgeConfiguration');
|
||||||
return (
|
return (
|
||||||
<Form.Item
|
<Form.Item
|
||||||
@ -26,4 +26,4 @@ const EntityTypesForm = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default EntityTypesForm;
|
export default EntityTypesItem;
|
@ -195,7 +195,7 @@ const Chunk = () => {
|
|||||||
onOk={onChunkUpdatingOk}
|
onOk={onChunkUpdatingOk}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<KnowledgeGraphModal></KnowledgeGraphModal>
|
{false && <KnowledgeGraphModal></KnowledgeGraphModal>}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
import { normFile } from '@/utils/file-util';
|
import EntityTypesItem from '@/components/entity-types-item';
|
||||||
import { PlusOutlined } from '@ant-design/icons';
|
|
||||||
import { Button, Form, Input, Radio, Select, Space, Upload } from 'antd';
|
|
||||||
import {
|
|
||||||
useFetchKnowledgeConfigurationOnMount,
|
|
||||||
useSubmitKnowledgeConfiguration,
|
|
||||||
} from './hooks';
|
|
||||||
|
|
||||||
import EntityTypesForm from '@/components/entity-types-form';
|
|
||||||
import LayoutRecognize from '@/components/layout-recognize';
|
import LayoutRecognize from '@/components/layout-recognize';
|
||||||
import MaxTokenNumber from '@/components/max-token-number';
|
import MaxTokenNumber from '@/components/max-token-number';
|
||||||
import ParseConfiguration, {
|
import ParseConfiguration, {
|
||||||
showRaptorParseConfiguration,
|
showRaptorParseConfiguration,
|
||||||
} from '@/components/parse-configuration';
|
} from '@/components/parse-configuration';
|
||||||
import { useTranslate } from '@/hooks/common-hooks';
|
import { useTranslate } from '@/hooks/common-hooks';
|
||||||
|
import { normFile } from '@/utils/file-util';
|
||||||
|
import { PlusOutlined } from '@ant-design/icons';
|
||||||
|
import { Button, Form, Input, Radio, Select, Space, Upload } from 'antd';
|
||||||
import { FormInstance } from 'antd/lib';
|
import { FormInstance } from 'antd/lib';
|
||||||
|
import {
|
||||||
|
useFetchKnowledgeConfigurationOnMount,
|
||||||
|
useSubmitKnowledgeConfiguration,
|
||||||
|
} from './hooks';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
|
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
@ -99,7 +98,7 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
|||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<EntityTypesForm></EntityTypesForm>
|
<EntityTypesItem></EntityTypesItem>
|
||||||
<Form.Item noStyle dependencies={['parser_id']}>
|
<Form.Item noStyle dependencies={['parser_id']}>
|
||||||
{({ getFieldValue }) => {
|
{({ getFieldValue }) => {
|
||||||
const parserId = getFieldValue('parser_id');
|
const parserId = getFieldValue('parser_id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user