Commit 7ec2b164 authored by 邢磊's avatar 邢磊

*)增加判断

parent c86f0698
......@@ -72,10 +72,12 @@ public class DPSubServiceImpl {
String renderType = tab.getString("renderType");
Object resultConvert = JsonValueUtils.getValueByKey(tab, "dataConfig", "dataConfig.resultConvert");
Object api = JsonValueUtils.getValueByKey(tab, "dataConfig", "dataConfig.api");
Object columnWidth = JsonValueUtils.getValueByKey(tab, "dataConfig", "dataConfig.columnWidth");
tab.put("param", param);
JSONObject map = content.getJSONObject(tab.getString("key"));
if (ValidationUtil.isEmpty(map)){
map = new JSONObject();
}
Object apiResult = null;
if (!ValidationUtil.isEmpty(api)) {
......@@ -124,7 +126,7 @@ public class DPSubServiceImpl {
if ("timeline".equals(renderType)){
content.put(tab.getString("key"), apiResult);
} else if("table".equals(renderType)){
JSONArray columns = (JSONArray) JsonValueUtils.getValueByKey(tab, "visualParams", "visualParams.columns");
Object columns = JsonValueUtils.getValueByKey(tab, "visualParams", "visualParams.columns");
map.put("columns", columns);
map.put("dataList", apiResult);
map.put("showPage", true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment