Browse Source

REPORT-50665【FRX】挂载新决策报表模板时,应该无须添加&op=form_adaptive参数

fix-lag
kerry 3 years ago
parent
commit
21e4bc1f77
  1. 13
      designer-form/src/main/java/com/fr/design/preview/FormAdaptivePreview.java

13
designer-form/src/main/java/com/fr/design/preview/FormAdaptivePreview.java

@ -4,17 +4,12 @@ import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.fun.impl.AbstractPreviewProvider;
import com.fr.design.mainframe.JForm;
import com.fr.design.mainframe.JTemplate;
import com.fr.general.web.ParameterConstants;
import java.util.HashMap;
import java.util.Map;
/**
* Created by kerry on 2020-04-23
*/
public class FormAdaptivePreview extends AbstractPreviewProvider {
private static final int PREVIEW_TYPE = 6;
public static final String PREVIEW_OP = "form_adaptive";
@Override
public String nameForPopupItem() {
@ -36,14 +31,6 @@ public class FormAdaptivePreview extends AbstractPreviewProvider {
return PREVIEW_TYPE;
}
@Override
public Map<String, Object> parametersForPreview() {
Map<String, Object> map = new HashMap<String, Object>();
map.put(ParameterConstants.OP, PREVIEW_OP);
return map;
}
@Override
public boolean accept(JTemplate jTemplate) {
if (jTemplate == null) {

Loading…
Cancel
Save