Browse Source

REPORT-25159 单元格元素-高级-显示值,删除公式后点击撤销公式显示会丢失

feature/big-screen
Joe.Jiang 5 years ago committed by Joe.Jiang
parent
commit
c9a8b7dc90
  1. 3
      designer-realize/src/main/java/com/fr/quickeditor/cellquick/CellDSColumnEditor.java

3
designer-realize/src/main/java/com/fr/quickeditor/cellquick/CellDSColumnEditor.java

@ -1188,7 +1188,8 @@ public class CellDSColumnEditor extends CellQuickEditor {
Object value = cellElement.getValue(); Object value = cellElement.getValue();
if (value instanceof DSColumn) { if (value instanceof DSColumn) {
DSColumn dSColumn = (DSColumn) (cellElement.getValue()); DSColumn dSColumn = (DSColumn) (cellElement.getValue());
dSColumn.setResult(this.formulaField.getFormulaText()); dSColumn.setResult(StringUtils.isEmpty(this.formulaField.getFormulaText()) ?
null : this.formulaField.getFormulaText());
} }
} }
} }

Loading…
Cancel
Save