+ {current?.step === JOB_LIFE_CYCLE.PUBLISH && (
+ <>
+
+ >
+ )}
{
alertGroupId: -1
}}
className={'data-studio-form'}
- style={{ paddingInline: '15px', overflow: 'scroll' }}
+ style={{ paddingInline: '15px', overflow: 'scroll', marginTop: 5 }}
form={form}
submitter={false}
layout='vertical'
+ disabled={current?.step === JOB_LIFE_CYCLE.PUBLISH} // 当该任务处于发布状态时 表单禁用 不允许修改 | when this job is publishing, the form is disabled , and it is not allowed to modify
onValuesChange={debounce(onValuesChange, 500)}
+ syncToInitialValues
>
{
}}
allowClear={false}
/>
+ {selectRunMode !== RUN_MODE.LOCAL && (
+ <>
+ {/*集群实例渲染逻辑*/}
+ {isCanRenderClusterInstance(selectRunMode) && (
+ <>
+
+ >
+ )}
- {isCanRenderClusterInstance(selectRunMode) && <>{execMode}>}
-
- {isCanRenderClusterConfiguration(selectRunMode) && (
-
+ })}
+ label={l('pages.datastudio.label.jobConfig.clusterConfig')}
+ tooltip={l('pages.datastudio.label.jobConfig.clusterConfig.tip2', '', {
+ type: selectRunMode
+ })}
+ rules={[
+ {
+ required: true,
+ message: l('pages.datastudio.label.jobConfig.clusterConfig.tip1', '', {
+ type: selectRunMode
+ })
+ }
+ ]}
+ options={buildClusterConfigOptions(selectRunMode, clusterConfiguration)}
+ allowClear={false}
+ />
+ )}
+ >
)}
- {current?.dialect?.toLowerCase() === DIALECT.FLINK_SQL && (
+ {current?.dialect && current?.dialect?.toLowerCase() === DIALECT.FLINK_SQL && (
{
max={9999}
min={1}
/>
- {/*{current?.dialect?.toLowerCase() === DIALECT.FLINK_SQL && (
-
- }}
- {...SWITCH_OPTIONS()}
- />
- )}*/}
-
{
}
return getIntl().formatMessage({ id, defaultMessage }, value);
};
+
+export const parseSplitI18nToWaterMarkList = (i18nMsg: string, splitter: string): string[] => {
+ return i18nMsg.split(splitter);
+};