diff --git a/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java b/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java index 8d62f3c18d..b99f7ae363 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java +++ b/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java @@ -39,6 +39,7 @@ import com.fr.form.ui.TreeEditor; import com.fr.form.ui.Widget; import com.fr.form.ui.concept.data.ValueInitializer; import com.fr.form.ui.tree.LayerConfig; +import com.fr.form.ui.tree.LayerDependence; import com.fr.general.ComparatorUtils; import com.fr.general.data.Condition; import com.fr.general.data.TableDataColumn; @@ -629,6 +630,9 @@ public class ReplaceUtils { layerConfig.setTableData(new NameTableData(entity.getNewName())); layerConfig.setViewColumn(entity.getTargetIndex(layerConfig.getViewColumn())); layerConfig.setModelColumn(entity.getTargetIndex(layerConfig.getModelColumn())); + for (LayerDependence dependence : layerConfig.getDependenceList()) { + dependence.setThisColumnIndex(entity.getTargetIndex(dependence.getThisColumnIndex())); + } } } ElementCaseHelper.replaceTableDataDictionary(layerConfig.getDictionary(), (NameTableData) layerConfig.getDictionary().getTableData(), entities);