From 9e35d7b6bcb3eb489f703736ede248bca91f5189 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Tue, 30 Nov 2021 09:42:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:http=E6=95=B0=E6=8D=AE=E9=9B=86=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E4=BD=93=E5=8A=A8=E6=80=81=E5=8F=82=E6=95=B0=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataset/service/impl/DataSetServiceImpl.java | 16 +++++++++++++++- .../bigscreen/designer/widget/widgetTable.vue | 1 - report-ui/src/views/report/resultset/index.vue | 1 - 3 files changed, 15 insertions(+), 3 deletions(-) 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;