Merge pull request !36 from Foming/dev
Foming 3 years ago committed by Gitee
commit b389610aa0

@ -21,10 +21,10 @@
####   组件介绍 ####   组件介绍
&emsp;&emsp; 大屏设计AJ-Report是一个可视化拖拽编辑的直观酷炫具有科技感的图表工具全开源项目。 内置的基础功能包括数据源,数据集,报表管理,项目部分截图如下。<br> &emsp;&emsp; 大屏设计AJ-Report是一个可视化拖拽编辑的直观酷炫具有科技感的图表工具全开源项目。 内置的基础功能包括数据源,数据集,报表管理,项目部分截图如下。<br>
**在线案例还在努力创造中,敬请期待!!!** **[更多案例](https://report.anji-plus.com/report-doc/guide/bigScreenCase.html)** <br>
![操作](https://images.gitee.com/uploads/images/2021/0703/094742_c0243f70_1728982.gif "2021-07-03_09-43-50.gif") ![操作](https://images.gitee.com/uploads/images/2021/0703/094742_c0243f70_1728982.gif "2021-07-03_09-43-50.gif")
![更多案例](https://report.anji-plus.com/report-doc/static/Rhea.mp4) <br> ![视频](https://report.anji-plus.com/report-doc/static/Rhea.mp4) <br>
## 数据流程图 ## 数据流程图
@ -145,7 +145,6 @@ sql文件的目录在report-core --> src --> main --> resources -- > db.migra
<a href='https://www.gykjweb.com/'><img src="https://report.anji-plus.com/file/download/d13b03f5-0c20-4878-9a79-f3c76b44bfd9" width = "130" height = "130" /> </a> <br> <a href='https://www.gykjweb.com/'><img src="https://report.anji-plus.com/file/download/d13b03f5-0c20-4878-9a79-f3c76b44bfd9" width = "130" height = "130" /> </a> <br>
<a href='http://www.plian.net/'><img src="https://report.anji-plus.com/file/download/7838f2c2-fdce-4ca7-8373-14d13dcda5cc" width = "130" height = "50" /> </a> <a href='http://www.plian.net/'><img src="https://report.anji-plus.com/file/download/7838f2c2-fdce-4ca7-8373-14d13dcda5cc" width = "130" height = "50" /> </a>
## 未来计划 ## 未来计划
- 大屏宽高动态可视化 - 大屏宽高动态可视化

@ -15,6 +15,7 @@ module.exports = {
{text: 'GitHub', link: 'https://github.com/anji-plus/report'}, {text: 'GitHub', link: 'https://github.com/anji-plus/report'},
{text: 'Gitee', link: 'https://gitee.com/anji-plus/report'}, {text: 'Gitee', link: 'https://gitee.com/anji-plus/report'},
{text: '谁在使用', link: '/guide/briefUsing'}, {text: '谁在使用', link: '/guide/briefUsing'},
{text: '更多案例', link: '/guide/bigScreenCase'},
], ],
sidebar: { sidebar: {
'/guide/': [ '/guide/': [

@ -0,0 +1,7 @@
## 案例一:
由社区 **[~无痕~@tengzhouboy](https://gitee.com/tengzhouboy)** 提供 <br>
[AJ-Report分享链接](https://report.anji-plus.com/index.html#/aj/mtwbjPot) <br>
![img.png](../picture/bigScreenCase/img.png) <br>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

@ -35,6 +35,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -313,7 +314,7 @@ public class DataSetServiceImpl implements DataSetService {
DataSourceDto dataSourceDto = new DataSourceDto(); DataSourceDto dataSourceDto = new DataSourceDto();
BeanUtils.copyProperties(dataSource, dataSourceDto); BeanUtils.copyProperties(dataSource, dataSourceDto);
dataSourceDto.setDynSentence(dynSentence); dataSourceDto.setDynSentence(dynSentence);
dataSourceDto.setContextData(dto.getContextData()); dataSourceDto.setContextData(setContextData(dto.getDataSetParamDtoList()));
//获取total,判断DataSetParamDtoList中是否传入分页参数 //获取total,判断DataSetParamDtoList中是否传入分页参数
Map<String, Object> collect = dto.getDataSetParamDtoList().stream().collect(Collectors.toMap(DataSetParamDto::getParamName, DataSetParamDto::getSampleItem)); Map<String, Object> collect = dto.getDataSetParamDtoList().stream().collect(Collectors.toMap(DataSetParamDto::getParamName, DataSetParamDto::getSampleItem));
@ -389,4 +390,17 @@ public class DataSetServiceImpl implements DataSetService {
// dataSetTransformService.insertBatch(dataSetTransformList); // dataSetTransformService.insertBatch(dataSetTransformList);
} }
/**
* dataSetParamDtoListmap
* @param dataSetParamDtoList
* @return
*/
public Map<String, Object> setContextData(List<DataSetParamDto> dataSetParamDtoList){
Map<String, Object> map = new HashMap<>();
if (null != dataSetParamDtoList && dataSetParamDtoList.size() > 0) {
dataSetParamDtoList.forEach(dataSetParamDto -> map.put(dataSetParamDto.getParamName(), dataSetParamDto.getSampleItem()));
}
return map;
}
} }

@ -196,7 +196,6 @@ export default {
}, },
tableFiledWidth(index){ tableFiledWidth(index){
var styleJson = {}; var styleJson = {};
debugger
if(this.optionsSetUp.dynamicAddTable[index].width ){ if(this.optionsSetUp.dynamicAddTable[index].width ){
styleJson["width"] = this.optionsSetUp.dynamicAddTable[index].width styleJson["width"] = this.optionsSetUp.dynamicAddTable[index].width
} }

@ -274,7 +274,6 @@ export default {
}, },
methods: { methods: {
operateDataset(type, prop) { operateDataset(type, prop) {
debugger
this.dialogVisibleSetDataSet = true; this.dialogVisibleSetDataSet = true;
if (prop && prop.msg) { if (prop && prop.msg) {
this.dataSet = prop.msg; this.dataSet = prop.msg;

Loading…
Cancel
Save