|
@ -5,7 +5,9 @@ import { |
|
|
ProFormSelect, |
|
|
ProFormSelect, |
|
|
ProFormTextArea, |
|
|
ProFormTextArea, |
|
|
ProFormText, |
|
|
ProFormText, |
|
|
ProFormDigit |
|
|
ProFormDigit, |
|
|
|
|
|
ProFormCheckbox, |
|
|
|
|
|
ProFormDependency |
|
|
} from '@ant-design/pro-form'; |
|
|
} from '@ant-design/pro-form'; |
|
|
|
|
|
|
|
|
import '../../style.less'; |
|
|
import '../../style.less'; |
|
@ -43,7 +45,7 @@ function StepThree(props) { |
|
|
rules={[{ required: true, message: '请输入数据源名称' }, |
|
|
rules={[{ required: true, message: '请输入数据源名称' }, |
|
|
{ max: 255, message: '数据源名称长度不能大于255个字符' }, |
|
|
{ max: 255, message: '数据源名称长度不能大于255个字符' }, |
|
|
]} |
|
|
]} |
|
|
name="name" |
|
|
name="taskName" |
|
|
label="名称" |
|
|
label="名称" |
|
|
style={{ |
|
|
style={{ |
|
|
minWidth: 140, |
|
|
minWidth: 140, |
|
@ -54,31 +56,51 @@ function StepThree(props) { |
|
|
rules={[{ required: true, message: '请输入cron表达式' }, |
|
|
rules={[{ required: true, message: '请输入cron表达式' }, |
|
|
{ max: 255, message: 'cron表达式长度不能大于255个字符' }, |
|
|
{ max: 255, message: 'cron表达式长度不能大于255个字符' }, |
|
|
]} |
|
|
]} |
|
|
name="name" |
|
|
name="cron" |
|
|
label="请输入cron表达式" |
|
|
label="请输入cron表达式" |
|
|
style={{ |
|
|
style={{ |
|
|
minWidth: 140, |
|
|
minWidth: 140, |
|
|
}} |
|
|
}} |
|
|
|
|
|
addonAfter={<Button>测试</Button>} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<ProFormCheckbox |
|
|
|
|
|
// rules={[{ required: true, message: '请选择重试次数' }]}
|
|
|
|
|
|
name="retried" |
|
|
|
|
|
label="重试" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<ProFormDependency name={['retried']}> |
|
|
|
|
|
{({ retried }) => { |
|
|
|
|
|
|
|
|
|
|
|
return retried ? |
|
|
|
|
|
<> |
|
|
<ProFormDigit |
|
|
<ProFormDigit |
|
|
rules={[{ required: true, message: '请输入重试次数' }, |
|
|
rules={[ |
|
|
{ max: 10, message: '重试次数不能大于10个字符' }, |
|
|
// { required: true, message: '请输入重试次数' },
|
|
|
|
|
|
// { max: 10, message: '重试次数不能大于10个字符' },
|
|
|
]} |
|
|
]} |
|
|
name="name" |
|
|
name="retryCount" |
|
|
label="重试次数" |
|
|
label="重试次数" |
|
|
fieldProps={{ precision: 0, max: 10, }} |
|
|
fieldProps={{ precision: 0, max: 10, }} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<ProFormText |
|
|
<ProFormDigit |
|
|
rules={[{ required: true, message: '请输入时间间隔' }, |
|
|
rules={[ |
|
|
{ max: 255, message: '时间间隔长度不能大于255个字符' }, |
|
|
// { required: true, message: '请输入时间间隔' },
|
|
|
|
|
|
// { max: 255, message: '时间间隔长度不能大于255个字符' },
|
|
|
]} |
|
|
]} |
|
|
name="name" |
|
|
name="retryTime" |
|
|
label="时间间隔" |
|
|
label="时间间隔" |
|
|
addonAfter={'分钟'} |
|
|
addonAfter={'分钟'} |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
</> |
|
|
|
|
|
: null |
|
|
|
|
|
}} |
|
|
|
|
|
</ProFormDependency> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ProForm.Group> |
|
|
</ProForm.Group> |
|
|
|
|
|
|
|
|
<div className='step-footer'> |
|
|
<div className='step-footer'> |
|
|