Compare commits

..

19 Commits

Author SHA1 Message Date
imp b0cf462c37 Merge pull request '无jira任务,版本升级' (#13) from Jimmy.Zheng/bi-starter-latest:master into master 2 years ago
Jimmy.Zheng 3cef420cdf 无jira任务,版本升级 2 years ago
imp 2a46aa5922 Merge pull request '无jira任务 版本更新' (#12) from imp/bi-starter-latest:master into master 2 years ago
jian 62c401d71f 无jira任务 版本更新 2 years ago
imp 8b2923144e Merge pull request '无jira任务 版本更新' (#11) from imp/bi-starter-latest:master into master 2 years ago
jian 42557a7b83 无jira任务 版本更新 2 years ago
imp b9e0a979e1 Merge pull request '6.0适配' (#10) from imp/bi-starter-latest:master into master 3 years ago
jian bb9e2f71b8 6.0适配 3 years ago
imp 5065e29708 Merge pull request '无jira任务 6.0适配' (#9) from imp/bi-starter-latest:master into master 3 years ago
jian d0fae89a08 无jira任务 6.0适配 3 years ago
imp 0cb9c495a1 Merge pull request '漏提交' (#8) from imp/bi-starter-5:master into master 3 years ago
imp 3e601e1f13 漏提交 3 years ago
imp 80a1af94c6 Merge pull request 'master' (#7) from imp/bi-starter-5:master into master 3 years ago
imp 4a9bb0903c Merge branch 'master' into master 3 years ago
imp 4708355aeb Merge remote-tracking branch 'origin/master' 3 years ago
imp 49fcf0d19b 优化js编译过程 3 years ago
imp bfd005288c Merge pull request '更新下版本' (#6) from imp/bi-starter-5:master into master 3 years ago
imp 25aa6f83e1 Merge branch 'master' into master 3 years ago
imp f0cb530b98 更新下版本 3 years ago
  1. 7
      build.gradle
  2. 5
      plugin-demo/build.gradle
  3. 9
      plugin-demo/plugin.xml
  4. 2
      plugin-demo/pom.xml
  5. 3
      plugin-demo/readme.md
  6. 2
      plugin-demo/src/main/java/com/finebi/plugin/BIDesignBoxPlotChart.java
  7. 8
      plugin-demo/src/main/resources/com/finebi/plugin/web/js/chart.js
  8. 8
      plugin-demo/src/main/resources/com/finebi/plugin/web/scripts/bi.chart.provider.js
  9. 12
      pom.xml
  10. 7
      readme.md
  11. BIN
      tip/version.png

7
build.gradle

@ -4,11 +4,11 @@ apply plugin: 'java'
/**
*
*/
def fineVersion = '10.0.19.2021.09.18'
def finebiVersion = '5.1.17.2021.10.16'
def fineVersion = '11.0.12.2023.02.01'
def finebiVersion = '6.0.7'
group = 'com.fr.plugin'
version = '10.0'
version = '11.0'
repositories {
mavenLocal()
@ -31,6 +31,7 @@ dependencies {
implementation 'com.fr.third:fine-third:' + fineVersion
implementation 'com.fr.activator:fine-activator:' + fineVersion
implementation 'com.fr.core:fine-core:' + fineVersion
implementation 'com.fr.cbb:fine-cbb:' + fineVersion
implementation 'com.fr.webui:fine-webui:' + fineVersion
implementation 'com.fr.datasource:fine-datasource:' + fineVersion
implementation 'com.fr.decision:fine-decision:' + fineVersion

5
plugin-demo/build.gradle

@ -21,10 +21,11 @@ ext {
pluginVersion = pluginInfo.version
outputPath = "$projectDir/../webroot/WEB-INF/plugins/plugin-" + pluginName + "-1.0/classes"
webPath = "$projectDir/../plugin-demo/src/main/resources/com/finebi/plugin/web"
}
group = 'com.fr.plugin'
version = '10.0'
version = '11.0'
sourceCompatibility = '8'
sourceSets {
@ -45,6 +46,8 @@ ant.references["compile.classpath"] = ant.path {
classes.dependsOn('clean')
task copyFiles(type: Copy,dependsOn: 'classes'){
(new File("$webPath/js/chart.js")).text = files("$webPath/scripts/bi.chart.provider.js", "$webPath/scripts/echarts.js").collect{it.getText()}.join("\n")
from outputPath
into "$projectDir/classes"
}

9
plugin-demo/plugin.xml

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

2
plugin-demo/pom.xml

@ -7,7 +7,7 @@
<parent>
<groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId>
<version>10.0</version>
<version>11.0</version>
</parent>
<packaging>jar</packaging>
<artifactId>plugin-demo</artifactId>

3
plugin-demo/readme.md

@ -10,3 +10,6 @@
![联动效果](./screenshots/link.png)
+ 前端代码结构
com/finebi/plugin/web/js/chart.js在插件打包过程中由com/finebi/plugin/web/js/scripts中的js拼接得到

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

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

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

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

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

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

12
pom.xml

@ -4,11 +4,11 @@
<groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId>
<!-- 这里的版本用依赖的SDK版本来表示,不表示产品本身的版本 -->
<version>10.0</version>
<version>11.0</version>
<packaging>pom</packaging>
<properties>
<univeral-framework-version>10.0.19.2021.09.18</univeral-framework-version>
<specific-framework-version>5.1.17.2021.10.16</specific-framework-version>
<univeral-framework-version>11.0.12.2023.02.01</univeral-framework-version>
<specific-framework-version>6.0.7</specific-framework-version>
<web-inf-bucket>${project.basedir}/webroot/WEB-INF</web-inf-bucket>
</properties>
<modules>
@ -33,6 +33,12 @@
<version>${univeral-framework-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fr.cbb</groupId>
<artifactId>fine-cbb</artifactId>
<version>${univeral-framework-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fr.webui</groupId>
<artifactId>fine-webui</artifactId>

7
readme.md

@ -34,12 +34,9 @@
## 修改依赖的jar版本
只需要更改build.gradle中的fineVersion和finebiVersion变量即可。
版本查看:CRM-环境信息-报表&BI jar包下载
![对应版本](./tip/version.png)
Maven仓库确认[版本jar包](http://mvn.finedevelop.com/#browse/browse:fanruan-release)
fineVersion=10.0.2020.06.08
finebiVersion=5.1.2020.06.15
fineVersion=11.0.6.2022.07.16
finebiVersion=6.0.1.2022.07.22
## 新增插件项目

BIN
tip/version.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Loading…
Cancel
Save