diff --git a/designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java b/designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java index c913d0f5df..d6bd7927c6 100644 --- a/designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java +++ b/designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java @@ -523,6 +523,9 @@ public class PreferencePane extends BasicPane { autoCleanPane.add(autoCleanRetainIntervalComboBox); autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Last"))); autoCleanPane.setVisible(false); + if (WorkContext.getCurrent().isLocal()) { + return new JPanel(); + } return autoCleanPane; } diff --git a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java index 54d0eef1eb..89588c6430 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java +++ b/designer-realize/src/main/java/com/fanruan/boot/env/function/DesignDatasourceComponent.java @@ -12,6 +12,11 @@ import com.fanruan.config.impl.data.ConnectionConfigWriter; import com.fanruan.config.impl.data.ConnectionConfigWriterFactory; import com.fanruan.config.impl.data.TableDataConfigProviderFactory; import com.fanruan.data.ConnectionConfigWrapper; +import com.fr.base.MultiParameterParser; +import com.fr.base.ParameterType; +import com.fr.base.ParameterTypeHandler; +import com.fr.base.parameter.FormulaParameterParser; +import com.fr.base.parameter.TableColumnParameterParser; import com.fr.data.driver.classloader.DriverClassLoaderHelper; import com.fr.data.driver.classloader.impl.ChildFirstDriverClassLoader; import com.fr.data.driver.classloader.impl.ChildOnlyDriverClassLoader; @@ -65,6 +70,10 @@ public class DesignDatasourceComponent extends DatasourceComponent { registerDriverClassLoader(); ConnectionConfigWriterFactory.registerConnectionConfigWriter((ConnectionConfigWriter) ConnectionConfigProviderFactory.getConfigProvider()); Carina.getApplicationContext().singleton(ConnectionWriterShell.class).set(ConnectionConfigWriterFactory.getConfigWriter()); + ParameterTypeHandler.getInstance().addParser(ParameterType.Multi.name(), new MultiParameterParser()); + ParameterTypeHandler.getInstance().addParser(ParameterType.JSONArray.name(), new MultiParameterParser()); + ParameterTypeHandler.getInstance().addParser(ParameterType.Formula.name(), new FormulaParameterParser()); + ParameterTypeHandler.getInstance().addParser(ParameterType.TableColumn.name(), new TableColumnParameterParser()); } private void registerDriverClassLoader() {