feat: Hide KnowledgeGraphModal #162 (#1783)

### 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:
balibabu
2024-08-02 10:40:56 +08:00
committed by GitHub
parent 3a739e3dd7
commit 3f21603558
4 changed files with 14 additions and 15 deletions

View File

@ -195,7 +195,7 @@ const Chunk = () => {
onOk={onChunkUpdatingOk}
/>
)}
<KnowledgeGraphModal></KnowledgeGraphModal>
{false && <KnowledgeGraphModal></KnowledgeGraphModal>}
</>
);
};

View File

@ -1,19 +1,18 @@
import { normFile } from '@/utils/file-util';
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 EntityTypesItem from '@/components/entity-types-item';
import LayoutRecognize from '@/components/layout-recognize';
import MaxTokenNumber from '@/components/max-token-number';
import ParseConfiguration, {
showRaptorParseConfiguration,
} from '@/components/parse-configuration';
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 {
useFetchKnowledgeConfigurationOnMount,
useSubmitKnowledgeConfiguration,
} from './hooks';
import styles from './index.less';
const { Option } = Select;
@ -99,7 +98,7 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
))}
</Select>
</Form.Item>
<EntityTypesForm></EntityTypesForm>
<EntityTypesItem></EntityTypesItem>
<Form.Item noStyle dependencies={['parser_id']}>
{({ getFieldValue }) => {
const parserId = getFieldValue('parser_id');