Browse Source

REPORT-88365 决策报表,单元格插入数据列,单元格元素页面有异常

【问题原因】单选时默认将cellDSColumnAdvancedPane的visible设为true,导致显示异常
【改动思路】结合cellDSColumnAdvancedPane的原始visible状态及单元格的单选多选状态再进行设置
new-design
Leo.Qin 2 years ago
parent
commit
6123c5ff59
  1. 6
      designer-realize/src/main/java/com/fr/quickeditor/cellquick/CellDSColumnEditor.java

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

@ -162,6 +162,7 @@ public class CellDSColumnEditor extends CellQuickEditor {
// 由于多选的时候修改了 cellDSColumnBasicPane 中组件的visiable属性,切换时需要将其设置为false // 由于多选的时候修改了 cellDSColumnBasicPane 中组件的visiable属性,切换时需要将其设置为false
cellDSColumnBasicPane.setVisible(false); cellDSColumnBasicPane.setVisible(false);
cellDSColumnAdvancedPane.setVisible(false);
card.show(cardContainer, paneList.get(index).title4PopupWindow()); card.show(cardContainer, paneList.get(index).title4PopupWindow());
paneList.get(index).populate(); paneList.get(index).populate();
@ -1064,7 +1065,10 @@ public class CellDSColumnEditor extends CellQuickEditor {
@Override @Override
public void refreshMultipleDetails() { public void refreshMultipleDetails() {
tabsHeaderIconPane.setVisible(tc.isSelectedOneCell()); tabsHeaderIconPane.setVisible(tc.isSelectedOneCell());
cellDSColumnAdvancedPane.setVisible(tc.isSelectedOneCell());
// 需要结合AdvancedPane的原始visible状态设置单选多选visible
boolean advancedPaneVisible = cellDSColumnAdvancedPane.isVisible();
cellDSColumnAdvancedPane.setVisible(advancedPaneVisible && tc.isSelectedOneCell());
cellDSColumnBasicPane.setMultipleVisible(tc.isSelectedOneCell()); cellDSColumnBasicPane.setMultipleVisible(tc.isSelectedOneCell());
} }

Loading…
Cancel
Save