Browse Source

CHART-18127 修改富文本参数分隔符

feature/big-screen
Qinghui.Liu 4 years ago
parent
commit
67897e1a23
  1. 4
      designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichEditorPane.java
  2. 2
      designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html

4
designer-chart/src/main/java/com/fr/van/chart/designer/component/richText/VanChartRichEditorPane.java

@ -30,6 +30,8 @@ import java.util.Map;
public class VanChartRichEditorPane {
private static final String PARAMS_SPLITTER = "|";
private static final String NAME_SPACE = "Pool";
private static final String VARIABLE = "data";
@ -163,7 +165,7 @@ public class VanChartRichEditorPane {
if (paramsMap != null) {
for (Map.Entry<String, String> entry : paramsMap.entrySet()) {
paramsStr.append(entry.getKey()).append(":").append(entry.getValue());
paramsStr.append("-");
paramsStr.append(PARAMS_SPLITTER);
}
}

2
designer-chart/src/main/resources/com/fr/design/editor/rich_editor.html

@ -28,7 +28,7 @@
var getDimensionIds = function (params) {
var result = [];
var paramGroup = params.split("-");
var paramGroup = params.split("|");
for (var i = 0, len = paramGroup.length; i < len; i++) {
var [key, value] = paramGroup[i].split(":");

Loading…
Cancel
Save