Browse Source

代码质量

feature/big-screen
zack 5 years ago
parent
commit
72308f9db4
  1. 11
      designer-base/src/main/java/com/fr/design/gui/frpane/tree/layer/config/LayerDataConfigPane.java

11
designer-base/src/main/java/com/fr/design/gui/frpane/tree/layer/config/LayerDataConfigPane.java

@ -76,18 +76,17 @@ public class LayerDataConfigPane extends BasicBeanPane<LayerConfig> {
} else { } else {
columnNames = new ArrayList<>(); columnNames = new ArrayList<>();
} }
TableDataDictionary dataDictionary = tableDataDictPane.updateBean(); TableDataDictionary dictionary = tableDataDictPane.updateBean();
String viewColStr = dataDictionary.getValueColumnName(); String viewColStr = dictionary.getValueColumnName();
String modelColStr = dataDictionary.getKeyColumnName(); String modelColStr = dictionary.getKeyColumnName();
int viewCol = columnNames.indexOf(viewColStr); int viewCol = columnNames.indexOf(viewColStr);
int modelCol = columnNames.indexOf(modelColStr); int modelCol = columnNames.indexOf(modelColStr);
if (StringUtils.EMPTY.equals(viewColStr)) { if (StringUtils.EMPTY.equals(viewColStr)) {
viewCol = dataDictionary.getValueColumnIndex(); viewCol = dictionary.getValueColumnIndex();
} }
if (StringUtils.EMPTY.equals(modelColStr)) { if (StringUtils.EMPTY.equals(modelColStr)) {
modelCol = dataDictionary.getKeyColumnIndex(); modelCol = dictionary.getKeyColumnIndex();
} }
TableDataDictionary dictionary = tableDataDictPane.updateBean();
//将数据设置到当前正在修改的layerData中 //将数据设置到当前正在修改的layerData中
this.layerConfig.setDictionary(dictionary); this.layerConfig.setDictionary(dictionary);
this.layerConfig.setModelColumn(modelCol); this.layerConfig.setModelColumn(modelCol);

Loading…
Cancel
Save