Browse Source

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

Merge in DESIGN/design from ~DESTINY.LIN/design:fbp/master to fbp/master

* commit 'd291b4c2e30470f0339246458cd6ab135db4bdea':
  REPORT-138201 【fr-fbp回归】最新master的fbp设计器更新jar后,打开模板不显示内容
fbp/master
Destiny.Lin-林锦龙 2 months ago
parent
commit
d2bf4ba3c2
  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.Start;
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
@ -18,12 +21,21 @@ import com.fr.report.VcsContext;
@DependsOn(dependencies = "design_function_chart_base")
public class DesignReportBaseComponent extends ReportBaseComponent {
/**
* prepare
*/
@Supplemental
public void supplemental() {
WebletFactory.registerWebletCreator(StreamReportletCreator.KEY);
WebletFactory.registerWebletCreator(StreamAndTemplateReportletCreator.KEY);
}
/**
* start
*/
@Start
public void start() {
VcsContext.init();
super.start();
}
/**
@ -31,6 +43,6 @@ public class DesignReportBaseComponent extends ReportBaseComponent {
*/
@Stop
public void stop() {
VcsContext.reset();
super.stop();
}
}

Loading…
Cancel
Save