+
+
+ 📋 {$t('pages.rules.originalRule')}
+
+ {formContent({
+ dataSourceList: dataSourceOptions,
+ formAttr: { initialValues, disabled: true },
+ })}
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
-
-
- ✏️ {$t('pages.rules.cloneRulePreview')}
-
+
+
+ ✏️ {$t('pages.rules.cloneRulePreview')}
+
- {formContent({
- dataSourceList: rightDataSourceList,
- formAttr: {
- initialValues: copyFormValues,
- formRef: formRef,
- disabled: confirmLoading,
- },
- })}
- {errMsg && (
-
- )}
-
-
+ {formContent({
+ dataSourceList: dataSourceOptions,
+ formAttr: {
+ initialValues: copyFormValues,
+ formRef: formRef,
+ disabled: confirmLoading,
+ },
+ onDataSourceChange: (dataSourceId) => {
+ const isSame = dataSourceId === formValues?.dataSourceId;
+ if (!isSame) {
+ const fields: Record