Merge pull request #4688 from dataease/pr@dev@fix_app-view-field

fix(应用): 修复应用不支持视图计算字段的问题 #4686
This commit is contained in:
王嘉豪 2023-03-02 17:07:43 +08:00 committed by GitHub
commit d169f1e9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,7 +363,7 @@ public class PanelAppTemplateService {
//替换datasetId
chartViewField.setTableId(datasetsRealMap.get(chartViewField.getTableId()));
//替换chartViewId
chartViewField.setChartId(chartViewsRealMap.get(chartViewField.getId()));
chartViewField.setChartId(chartViewsRealMap.get(chartViewField.getChartId()));
//替换datasetFieldId
datasetFieldsRealMap.forEach((k, v) -> {
chartViewField.setOriginName(chartViewField.getOriginName().replaceAll(k, v));