|
|
|
@@ -198,7 +198,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
afterOpenChange={afterOpenChange} |
|
|
|
open={open} |
|
|
|
width={520} |
|
|
|
className={styles.editPipelineProps} |
|
|
|
className={styles['pipeline-drawer']} |
|
|
|
> |
|
|
|
<Form |
|
|
|
name="form" |
|
|
|
@@ -215,7 +215,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
}} |
|
|
|
autoComplete="off" |
|
|
|
> |
|
|
|
<div className={styles.editPipelinePropsContent}> |
|
|
|
<div className={styles['pipeline-drawer__title']}> |
|
|
|
<SubAreaTitle image="/assets/images/static-message.png" title="基本信息"></SubAreaTitle> |
|
|
|
</div> |
|
|
|
<Form.Item |
|
|
|
@@ -242,20 +242,21 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
> |
|
|
|
<Input disabled /> |
|
|
|
</Form.Item> |
|
|
|
<div className={styles.editPipelinePropsContent}> |
|
|
|
<div className={styles['pipeline-drawer__title']}> |
|
|
|
<SubAreaTitle image="/assets/images/duty-message.png" title="任务信息"></SubAreaTitle> |
|
|
|
</div> |
|
|
|
<Form.Item label="镜像" required> |
|
|
|
<div className={styles['ref-row']}> |
|
|
|
<div className={styles['pipeline-drawer__ref-row']}> |
|
|
|
<Form.Item name="image" noStyle rules={[{ required: true, message: '请输入镜像' }]}> |
|
|
|
<Input placeholder="请输入或选择镜像" allowClear /> |
|
|
|
</Form.Item> |
|
|
|
<Form.Item noStyle> |
|
|
|
<Button |
|
|
|
type="link" |
|
|
|
size="small" |
|
|
|
icon={getSelectBtnIcon({ item_type: 'image' })} |
|
|
|
onClick={() => selectResource('image', { item_type: 'image' })} |
|
|
|
className={styles['select-button']} |
|
|
|
className={styles['pipeline-drawer__ref-row__select-button']} |
|
|
|
> |
|
|
|
选择镜像 |
|
|
|
</Button> |
|
|
|
@@ -368,7 +369,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
<Input placeholder={item.value.label} allowClear /> |
|
|
|
</Form.Item> |
|
|
|
))} |
|
|
|
<div className={styles.editPipelinePropsContent}> |
|
|
|
<div className={styles['pipeline-drawer__title']}> |
|
|
|
<SubAreaTitle image="/assets/images/duty-message.png" title="输入参数"></SubAreaTitle> |
|
|
|
</div> |
|
|
|
{inParametersList.map((item) => ( |
|
|
|
@@ -388,7 +389,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
} |
|
|
|
required={item.value.require ? true : false} |
|
|
|
> |
|
|
|
<div className={styles['ref-row']}> |
|
|
|
<div className={styles['pipeline-drawer__ref-row']}> |
|
|
|
<Form.Item |
|
|
|
name={['in_parameters', item.key]} |
|
|
|
noStyle |
|
|
|
@@ -408,10 +409,11 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
{item.value.type === 'ref' && ( |
|
|
|
<Form.Item noStyle> |
|
|
|
<Button |
|
|
|
size="small" |
|
|
|
type="link" |
|
|
|
icon={getSelectBtnIcon(item.value)} |
|
|
|
onClick={() => selectResource(['in_parameters', item.key], item.value)} |
|
|
|
className={styles['select-button']} |
|
|
|
className={styles['pipeline-drawer__ref-row__select-button']} |
|
|
|
> |
|
|
|
{item.value.label} |
|
|
|
</Button> |
|
|
|
@@ -420,7 +422,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { |
|
|
|
</div> |
|
|
|
</Form.Item> |
|
|
|
))} |
|
|
|
<div className={styles.editPipelinePropsContent}> |
|
|
|
<div className={styles['pipeline-drawer__title']}> |
|
|
|
<SubAreaTitle image="/assets/images/duty-message.png" title="输出参数"></SubAreaTitle> |
|
|
|
</div> |
|
|
|
{outParametersList.map((item) => ( |
|
|
|
|