Browse Source

REPORT-141671 【数据集替换】组合图的数据集替换后,数据列没有替换成功

final/11.0^2
Destiny.Lin 1 day ago
parent
commit
365450b387
  1. 19
      designer-realize/src/main/java/com/fr/design/actions/replace/utils/SearchJSUtils.java

19
designer-realize/src/main/java/com/fr/design/actions/replace/utils/SearchJSUtils.java

@ -387,11 +387,14 @@ public class SearchJSUtils {
if (chartCollection.getChart(i) instanceof VanChart) { if (chartCollection.getChart(i) instanceof VanChart) {
VanChart chart = ((VanChart) chartCollection.getChart(i)); VanChart chart = ((VanChart) chartCollection.getChart(i));
if (chart.getPlot() != null) { if (chart.getPlot() != null) {
NameJavaScriptGroup nameJavaScriptGroup = chart.getPlot().getHotHyperLink(); if (chart.getPlot() instanceof VanChartCustomPlot) {
if (isNameJavaScriptGroupExist(nameJavaScriptGroup)) { VanChartCustomPlot plot = chart.getPlot();
for (int j = 0; j < nameJavaScriptGroup.size(); j++) { for (Plot customPlot : plot.getCustomPlotList()) {
nameJavaScriptArrayList.add(nameJavaScriptGroup.getNameHyperlink(j)); getChartJavaScriptFromGroup(customPlot.getHotHyperLink(), nameJavaScriptArrayList);
} }
} else {
NameJavaScriptGroup nameJavaScriptGroup = chart.getPlot().getHotHyperLink();
getChartJavaScriptFromGroup(nameJavaScriptGroup, nameJavaScriptArrayList);
} }
} }
} }
@ -399,6 +402,14 @@ public class SearchJSUtils {
return nameJavaScriptArrayList; return nameJavaScriptArrayList;
} }
private static void getChartJavaScriptFromGroup(NameJavaScriptGroup nameJavaScriptGroup, ArrayList<NameJavaScript> nameJavaScriptArrayList) {
if (isNameJavaScriptGroupExist(nameJavaScriptGroup)) {
for (int j = 0; j < nameJavaScriptGroup.size(); j++) {
nameJavaScriptArrayList.add(nameJavaScriptGroup.getNameHyperlink(j));
}
}
}
/** /**
* 处理图表的交互属性可能存在多种地图 * 处理图表的交互属性可能存在多种地图
* @param content 存储信息的数据结构 * @param content 存储信息的数据结构

Loading…
Cancel
Save