Compare commits

..

No commits in common. 'master' and 'master' have entirely different histories.

  1. 4
      build.gradle
  2. 9
      plugin-demo/plugin.xml
  3. 2
      plugin-demo/src/main/java/com/finebi/plugin/BIDesignBoxPlotChart.java
  4. 78032
      plugin-demo/src/main/resources/com/finebi/plugin/web/js/chart.js
  5. 8
      plugin-demo/src/main/resources/com/finebi/plugin/web/scripts/bi.chart.provider.js
  6. 10
      pom.xml
  7. 9
      readme.md

4
build.gradle

@ -4,8 +4,8 @@ apply plugin: 'java'
/** /**
* *
*/ */
def fineVersion = '11.0.12.2023.02.01' def fineVersion = '11.0.3.2022.03.02'
def finebiVersion = '6.0.7' def finebiVersion = '5.1.21.2022.03.01'
group = 'com.fr.plugin' group = 'com.fr.plugin'
version = '11.0' version = '11.0'

9
plugin-demo/plugin.xml

@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plugin> <plugin>
<id>com.finebi.plugin.boxplotchart</id> <id>com.finebi.plugin.boxplotchart</id>
<main-package>com.finebi</main-package>
<name><![CDATA[BI箱线图]]></name> <name><![CDATA[BI箱线图]]></name>
<active>yes</active> <active>yes</active>
<version>1.1</version> <version>1.0</version>
<env-version>11.0~11.0</env-version> <env-version>11.0</env-version>
<jartime>2021-08-30</jartime> <jartime>2019-02-27</jartime>
<vendor>imp</vendor> <vendor>imp</vendor>
<description><![CDATA[BI箱线图图表插件]]></description> <description><![CDATA[BI箱线图图表插件]]></description>
<bi-env-version>6.0~</bi-env-version>
<extra-decision> <extra-decision>
<WebResourceProvider class="com.finebi.plugin.BIShowBoxPlotChart"/> <WebResourceProvider class="com.finebi.plugin.BIShowBoxPlotChart"/>
<WebResourceProvider class="com.finebi.plugin.BIDesignBoxPlotChart"/> <WebResourceProvider class="com.finebi.plugin.BIDesignBoxPlotChart"/>
</extra-decision> </extra-decision>
<function-recorder class="com.finebi.plugin.BIShowBoxPlotChart"/> <function-recorder class="com.finebi.plugin.BIShowBoxPlotChart"/>
<function-recorder class="com.finebi.plugin.BIDesignBoxPlotChart"/> <function-recorder class="com.finebi.plugin.BIDesignBoxPlotChart"/>
<main-package>com.finebi</main-package>
</plugin> </plugin>

2
plugin-demo/src/main/java/com/finebi/plugin/BIDesignBoxPlotChart.java

@ -12,7 +12,7 @@ public class BIDesignBoxPlotChart extends AbstractWebResourceProvider {
@Override @Override
public Atom attach() { public Atom attach() {
return AssembleComponentFactory.getSubjectPageComponent(); return AssembleComponentFactory.getReportComponent();
} }
@Override @Override

78032
plugin-demo/src/main/resources/com/finebi/plugin/web/js/chart.js

File diff suppressed because it is too large Load Diff

8
plugin-demo/src/main/resources/com/finebi/plugin/web/scripts/bi.chart.provider.js

@ -102,11 +102,11 @@
var maxMap = {}; var maxMap = {};
var minMap = {}; var minMap = {};
BI.each(header, function(i, header) { BI.each(header, function(i, header) {
if (!dimId && data.widgetHelper.isDimDimensionById(header.dId)) { if (!dimId && BI.Utils.isDimDimensionById(header.dId)) {
dimId = header.dId; dimId = header.dId;
seriesName = header.text; seriesName = header.text;
} }
if (!targetId && data.widgetHelper.isTargetById(header.dId)) { if (!targetId && BI.Utils.isTargetById(header.dId)) {
targetId = header.dId; targetId = header.dId;
} }
}); });
@ -178,7 +178,7 @@
var dataGroup = {}; var dataGroup = {};
BI.each(header, function(i, header) { BI.each(header, function(i, header) {
if (data.widgetHelper.isDimDimensionById(header.dId)) { if (BI.Utils.isDimDimensionById(header.dId)) {
dimId = header.dId; dimId = header.dId;
seriesName = header.text; seriesName = header.text;
} }
@ -240,7 +240,7 @@
this.render = function(el, d) { this.render = function(el, d) {
var self = this; var self = this;
// 获取WID // 获取WID
var configObj = d.widgetHelper.getInjection(); var configObj = BI.Utils.getReportInjectionById(this.model.wId);
console.log(d); console.log(d);
console.log(configObj); console.log(configObj);
var series; var series;

10
pom.xml

@ -7,8 +7,8 @@
<version>11.0</version> <version>11.0</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<univeral-framework-version>11.0.12.2023.02.01</univeral-framework-version> <univeral-framework-version>11.0.3.2022.03.02</univeral-framework-version>
<specific-framework-version>6.0.7</specific-framework-version> <specific-framework-version>5.1.21.2022.03.01</specific-framework-version>
<web-inf-bucket>${project.basedir}/webroot/WEB-INF</web-inf-bucket> <web-inf-bucket>${project.basedir}/webroot/WEB-INF</web-inf-bucket>
</properties> </properties>
<modules> <modules>
@ -33,12 +33,6 @@
<version>${univeral-framework-version}</version> <version>${univeral-framework-version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>com.fr.cbb</groupId>
<artifactId>fine-cbb</artifactId>
<version>${univeral-framework-version}</version>
<scope>compile</scope>
</dependency>
<dependency> <dependency>
<groupId>com.fr.webui</groupId> <groupId>com.fr.webui</groupId>
<artifactId>fine-webui</artifactId> <artifactId>fine-webui</artifactId>

9
readme.md

@ -34,9 +34,14 @@
## 修改依赖的jar版本 ## 修改依赖的jar版本
只需要更改build.gradle中的fineVersion和finebiVersion变量即可。 只需要更改build.gradle中的fineVersion和finebiVersion变量即可。
官网BI下载,5.1.22和5.1.23有问题,可以从CRM上下载5.1.21或5.24之后的版本
版本查看:CRM-环境信息-报表&BI jar包下载
![对应版本](./tip/version.png)
Maven仓库确认[版本jar包](http://mvn.finedevelop.com/#browse/browse:fanruan-release) Maven仓库确认[版本jar包](http://mvn.finedevelop.com/#browse/browse:fanruan-release)
fineVersion=11.0.6.2022.07.16 fineVersion=11.0.3.2022.03.02
finebiVersion=6.0.1.2022.07.22 finebiVersion=5.1.21.2022.03.01
## 新增插件项目 ## 新增插件项目

Loading…
Cancel
Save