Browse Source

REPORT-138201 【fr-fbp回归】最新master的fbp设计器更新jar后,打开模板不显示内容

fbp/master
Destiny.Lin 1 month ago
parent
commit
8cb29f5d5e
  1. 18
      designer-realize/src/main/java/com/fanruan/boot/env/function/DesignReportBaseComponent.java

18
designer-realize/src/main/java/com/fanruan/boot/env/function/DesignReportBaseComponent.java vendored

@ -5,7 +5,10 @@ import com.fanruan.carina.annotions.DependsOn;
import com.fanruan.carina.annotions.FineComponent; import com.fanruan.carina.annotions.FineComponent;
import com.fanruan.carina.annotions.Start; import com.fanruan.carina.annotions.Start;
import com.fanruan.carina.annotions.Stop; import com.fanruan.carina.annotions.Stop;
import com.fr.report.VcsContext; import com.fanruan.carina.annotions.Supplemental;
import com.fr.nx.app.web.StreamAndTemplateReportletCreator;
import com.fr.nx.app.web.StreamReportletCreator;
import com.fr.web.factory.WebletFactory;
/** /**
* DesignReportBaseComponent * DesignReportBaseComponent
@ -18,12 +21,21 @@ import com.fr.report.VcsContext;
@DependsOn(dependencies = "design_function_chart_base") @DependsOn(dependencies = "design_function_chart_base")
public class DesignReportBaseComponent extends ReportBaseComponent { public class DesignReportBaseComponent extends ReportBaseComponent {
/**
* prepare
*/
@Supplemental
public void supplemental() {
WebletFactory.registerWebletCreator(StreamReportletCreator.KEY);
WebletFactory.registerWebletCreator(StreamAndTemplateReportletCreator.KEY);
}
/** /**
* start * start
*/ */
@Start @Start
public void start() { public void start() {
VcsContext.init(); super.start();
} }
/** /**
@ -31,6 +43,6 @@ public class DesignReportBaseComponent extends ReportBaseComponent {
*/ */
@Stop @Stop
public void stop() { public void stop() {
VcsContext.reset(); super.stop();
} }
} }

Loading…
Cancel
Save