Browse Source

REPORT-60995 导出-导出事件-参数设置-取消勾选继承报表后弹窗关不掉

bugfix/11.0
pengda 3 years ago
parent
commit
41ac183f99
  1. 12
      designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java

12
designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java

@ -780,11 +780,13 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
if (currentTemplatePane.extendParametersCheckBox.isSelected()) {
exportJavaScript.setParameters(null);
} else {
List<ParameterProvider> parameterList = parameterViewPane.update();
if (!parameterList.isEmpty()) {
Parameter[] parameters = new Parameter[parameterList.size()];
parameterList.toArray(parameters);
js.setParameters(parameters);
if (parameterViewPane != null) {
List<ParameterProvider> parameterList = parameterViewPane.update();
if (!parameterList.isEmpty()) {
Parameter[] parameters = new Parameter[parameterList.size()];
parameterList.toArray(parameters);
js.setParameters(parameters);
}
}
}
exportJavaScript.addJS(js);

Loading…
Cancel
Save