|
@@ -179,36 +179,26 @@ export default function SyncTaskAdd() {
|
|
|
|
|
|
{/* 表单项 */}
|
|
|
{/* 配置提取源 */}
|
|
|
- {currentStep === 0 ? (
|
|
|
- <StepOne drawDataForm={drawDataForm} dataSourceList={dataSourceList} />
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
+ {currentStep === 0 && <StepOne drawDataForm={drawDataForm} dataSourceList={dataSourceList} />}
|
|
|
{/* 配置加载源 */}
|
|
|
- {currentStep === 1 ? (
|
|
|
- <StepTwo loadDataForm={loadDataForm} dataSourceList={dataSourceList} />
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
+ {currentStep === 1 && <StepTwo loadDataForm={loadDataForm} dataSourceList={dataSourceList} />}
|
|
|
|
|
|
{/* 配置转换规则 */}
|
|
|
- {currentStep === 2 ? (
|
|
|
+ {currentStep === 2 &&
|
|
|
<StepThree
|
|
|
onRef={stepThreeRef}
|
|
|
drawDataForm={drawDataForm}
|
|
|
loadDataForm={loadDataForm}
|
|
|
ruleForm={ruleForm}
|
|
|
/>
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
+ }
|
|
|
|
|
|
{/* 设置同步参数 */}
|
|
|
- {currentStep === 3 ? <StepFour syncDataForm={syncDataForm} /> : ''}
|
|
|
+ {currentStep === 3 && <StepFour syncDataForm={syncDataForm} />}
|
|
|
|
|
|
{/* 按扭操作 */}
|
|
|
{/* 表结构预览 */}
|
|
|
- {currentStep === 0 || currentStep === 1 ? (
|
|
|
+ {(currentStep === 0 || currentStep === 1 ) &&
|
|
|
<>
|
|
|
<Button
|
|
|
type="primary"
|
|
@@ -234,9 +224,7 @@ export default function SyncTaskAdd() {
|
|
|
)}
|
|
|
</Drawer>
|
|
|
</>
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
+ }
|
|
|
|
|
|
{/* 按扭操作 */}
|
|
|
<Space style={{ margin: '20px' }}>
|
|
@@ -244,7 +232,8 @@ export default function SyncTaskAdd() {
|
|
|
onClick={() => {
|
|
|
changeStep(-1)
|
|
|
}}
|
|
|
- disabled={currentStep === 0 || building}>
|
|
|
+ disabled={currentStep === 0 || building}
|
|
|
+ >
|
|
|
上一步
|
|
|
</Button>
|
|
|
{currentStep === 3 ? (
|