diff --git a/web/src/pages/flow/constant.tsx b/web/src/pages/flow/constant.tsx index 173de2c0e..132fbd110 100644 --- a/web/src/pages/flow/constant.tsx +++ b/web/src/pages/flow/constant.tsx @@ -45,7 +45,6 @@ import { import upperFirst from 'lodash/upperFirst'; import { CloudUpload, - Link2, ListOrdered, OptionIcon, TextCursorInput, @@ -2876,7 +2875,6 @@ export enum BeginQueryType { File = 'file', Integer = 'integer', Boolean = 'boolean', - Url = 'url', } export const BeginQueryTypeIconMap = { @@ -2886,5 +2884,4 @@ export const BeginQueryTypeIconMap = { [BeginQueryType.File]: CloudUpload, [BeginQueryType.Integer]: ListOrdered, [BeginQueryType.Boolean]: ToggleLeft, - [BeginQueryType.Url]: Link2, }; diff --git a/web/src/pages/flow/form/generate-form/dynamic-parameters.tsx b/web/src/pages/flow/form/generate-form/dynamic-parameters.tsx index 96e9ed28f..427ce04ab 100644 --- a/web/src/pages/flow/form/generate-form/dynamic-parameters.tsx +++ b/web/src/pages/flow/form/generate-form/dynamic-parameters.tsx @@ -36,7 +36,6 @@ const DynamicParameters = ({ nodeId }: IProps) => { title: t('key'), dataIndex: 'key', key: 'key', - width: 50, onCell: (record: IGenerateParameter) => ({ record, editable: true, diff --git a/web/src/pages/flow/run-drawer/index.tsx b/web/src/pages/flow/run-drawer/index.tsx index 5dda620fb..dda626e01 100644 --- a/web/src/pages/flow/run-drawer/index.tsx +++ b/web/src/pages/flow/run-drawer/index.tsx @@ -5,11 +5,10 @@ import { useHandleSubmittable } from '@/hooks/login-hooks'; import { IModalProps } from '@/interfaces/common'; import api from '@/utils/api'; import { getAuthorization } from '@/utils/authorization-util'; -import { InboxOutlined } from '@ant-design/icons'; +import { UploadOutlined } from '@ant-design/icons'; import { Button, Drawer, - Flex, Form, FormItemProps, Input, @@ -19,7 +18,6 @@ import { Upload, } from 'antd'; import { pick } from 'lodash'; -import { Link2, Trash2 } from 'lucide-react'; import React, { useCallback, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { BeginQueryType } from '../constant'; @@ -33,6 +31,7 @@ import { getDrawerWidth } from '../utils'; import { PopoverForm } from './popover-form'; import { UploadChangeParam, UploadFile } from 'antd/es/upload'; +import { Link } from 'lucide-react'; import styles from './index.less'; const RunDrawer = ({ @@ -60,18 +59,6 @@ const RunDrawer = ({ [setRecord, showPopover], ); - const handleRemoveUrl = useCallback( - (key: number, index: number) => () => { - const list: any[] = form.getFieldValue(key); - - form.setFieldValue( - key, - list.filter((_, idx) => idx !== index), - ); - }, - [form], - ); - const getBeginNodeDataQuery = useGetBeginNodeDataQuery(); const query: BeginQuery[] = getBeginNodeDataQuery(); @@ -126,27 +113,47 @@ const RunDrawer = ({ ), [BeginQueryType.File]: ( -
-
{t('fileManager.uploadTitle')}
-- {t('fileManager.uploadDescription')} -
-