Browse Source

Merge pull request #5271 in DESIGN/design from release/11.0 to feature/x

* commit '9e96755af5259f69d8a89936add1a4d5770f9ba8':
  REPORT-50665【FRX】挂载新决策报表模板时,应该无须添加&op=form_adaptive参数
research/11.0
superman 3 years ago
parent
commit
94ff52feb4
  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