Browse Source

fix:修复部分表格项样式

nobody 2 years ago
parent
commit
fe2113d7b8
1 changed files with 6 additions and 10 deletions
  1. 6 10
      src/module/datasource/component/StepFour.jsx

+ 6 - 10
src/module/datasource/component/StepFour.jsx

@@ -45,7 +45,8 @@ export default function StepFour({ syncDataForm }) {
           partition_info: '',
           replace_param: '',
           executor_timeout: 0,
-          executor_fail_retry_count: 0
+          executor_fail_retry_count: 0,
+          inc_start_time: ''
         }}
       >
         <Form.Item
@@ -90,7 +91,7 @@ export default function StepFour({ syncDataForm }) {
           name="executor_timeout"
           required
         >
-          <InputNumber min={0} addonAfter=""/>
+          <InputNumber min={0} addonAfter="分钟"/>
         </Form.Item>
         <Form.Item
           label="失败重试次数"
@@ -102,12 +103,7 @@ export default function StepFour({ syncDataForm }) {
         <Form.Item
           label="增量开始时间"
           name="inc_start_time"
-          rules={[
-            {
-              required: true,
-              message: '请选择增量开始时间',
-            },
-          ]}>
+        >
           <DatePicker showTime placeholder='请选择增量开始时间'/>
         </Form.Item>
         <Form.Item
@@ -187,12 +183,12 @@ export default function StepFour({ syncDataForm }) {
                   message: '请输入定时规则',
                 },
               ]}>
-              {showRuleConfig ? <InputNumber
+              {showRuleConfig ? <Input placeholder='请输入定时规则'/> : <InputNumber
                 min={0}
                 addonAfter={suffixSelector}
                 placeholder='请输入定时规则'
                 style={{ width: '100%',}}
-              /> : <Input placeholder='请输入定时规则'/>}
+              />}
             </Form.Item>
           </Col>
           <Col span={8} style={{marginLeft: '20px'}}>