Browse Source

REPORT-56840 将判断下拉框是否选择了某个值的判断方法改成直接调用现成的获取值方法,减少代码冗余

fix-lag
方磊 3 years ago
parent
commit
c583f44f87
  1. 3
      designer-base/src/main/java/com/fr/design/data/datapane/TreeTableDataDictPane.java

3
designer-base/src/main/java/com/fr/design/data/datapane/TreeTableDataDictPane.java

@ -202,8 +202,7 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable {
}
private boolean isNoSelectedColumnName(ValueEditorPane valueEditorPane) {
ColumnNameEditor columnNameEditor = (ColumnNameEditor) valueEditorPane.getCards()[0];
return StringUtils.isEmpty(columnNameEditor.getColumnName());
return (Integer) valueEditorPane.update() == -1;
}
@Override

Loading…
Cancel
Save