diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java index 216b3228..b4ef25e8 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java @@ -35,6 +35,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -313,7 +314,7 @@ public class DataSetServiceImpl implements DataSetService { DataSourceDto dataSourceDto = new DataSourceDto(); BeanUtils.copyProperties(dataSource, dataSourceDto); dataSourceDto.setDynSentence(dynSentence); - dataSourceDto.setContextData(dto.getContextData()); + dataSourceDto.setContextData(setContextData(dto.getDataSetParamDtoList())); //获取total,判断DataSetParamDtoList中是否传入分页参数 Map collect = dto.getDataSetParamDtoList().stream().collect(Collectors.toMap(DataSetParamDto::getParamName, DataSetParamDto::getSampleItem)); @@ -389,4 +390,17 @@ public class DataSetServiceImpl implements DataSetService { // dataSetTransformService.insertBatch(dataSetTransformList); } + /** + * dataSetParamDtoList转map + * @param dataSetParamDtoList + * @return + */ + public Map setContextData(List dataSetParamDtoList){ + Map map = new HashMap<>(); + if (null != dataSetParamDtoList && dataSetParamDtoList.size() > 0) { + dataSetParamDtoList.forEach(dataSetParamDto -> map.put(dataSetParamDto.getParamName(), dataSetParamDto.getSampleItem())); + } + return map; + } + } diff --git a/report-ui/src/views/report/bigscreen/designer/widget/widgetTable.vue b/report-ui/src/views/report/bigscreen/designer/widget/widgetTable.vue index 620ea3c6..120c0f75 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/widgetTable.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/widgetTable.vue @@ -196,7 +196,6 @@ export default { }, tableFiledWidth(index){ var styleJson = {}; - debugger if(this.optionsSetUp.dynamicAddTable[index].width ){ styleJson["width"] = this.optionsSetUp.dynamicAddTable[index].width } diff --git a/report-ui/src/views/report/resultset/index.vue b/report-ui/src/views/report/resultset/index.vue index 82fe522d..bdda5160 100644 --- a/report-ui/src/views/report/resultset/index.vue +++ b/report-ui/src/views/report/resultset/index.vue @@ -274,7 +274,6 @@ export default { }, methods: { operateDataset(type, prop) { - debugger this.dialogVisibleSetDataSet = true; if (prop && prop.msg) { this.dataSet = prop.msg;