Browse Source

REPORT-142093 【数据集替换】下拉树中,如果数据集存在依赖层级,字段没有替换

final/11.0
Destiny.Lin 4 weeks ago
parent
commit
4fe2c97f1c
  1. 4
      designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java

4
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);

Loading…
Cancel
Save