forked from github/dataease
fix: 【数据源】-从社区版升级到企业版,历史Excel数据源同步保留后,图标错误
This commit is contained in:
parent
018ade48c1
commit
16353bb050
@ -1,5 +1,6 @@
|
|||||||
package io.dataease.rmonitor.manage;
|
package io.dataease.rmonitor.manage;
|
||||||
|
|
||||||
|
import io.dataease.constant.DataSourceType;
|
||||||
import io.dataease.exception.DEException;
|
import io.dataease.exception.DEException;
|
||||||
import io.dataease.rmonitor.bo.PerMonitorCheckBO;
|
import io.dataease.rmonitor.bo.PerMonitorCheckBO;
|
||||||
import io.dataease.rmonitor.bo.PerMonitorNodeBO;
|
import io.dataease.rmonitor.bo.PerMonitorNodeBO;
|
||||||
@ -45,6 +46,7 @@ public class ResourceMonitorManage {
|
|||||||
List<PerMonitorNodeBO> dsBos = dsFreeResources.stream().map(node -> {
|
List<PerMonitorNodeBO> dsBos = dsFreeResources.stream().map(node -> {
|
||||||
PerMonitorNodeBO bo = BeanUtils.copyBean(new PerMonitorNodeBO(), node);
|
PerMonitorNodeBO bo = BeanUtils.copyBean(new PerMonitorNodeBO(), node);
|
||||||
bo.setLeaf(!StringUtils.equals("folder", node.getType()));
|
bo.setLeaf(!StringUtils.equals("folder", node.getType()));
|
||||||
|
bo.setExtraFlag(DataSourceType.valueOf(node.getType()).getFlag());
|
||||||
return bo;
|
return bo;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
List<PerMonitorNodeBO> dsTree = TreeUtils.mergeTree(dsBos, PerMonitorNodeBO.class, false);
|
List<PerMonitorNodeBO> dsTree = TreeUtils.mergeTree(dsBos, PerMonitorNodeBO.class, false);
|
||||||
@ -79,7 +81,7 @@ public class ResourceMonitorManage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String convertBusiFlag(String key) {
|
private String convertBusiFlag(String key) {
|
||||||
if (StringUtils.equals("dashboard", key)){
|
if (StringUtils.equals("dashboard", key)) {
|
||||||
return "panel";
|
return "panel";
|
||||||
} else if (StringUtils.equals("dataV", key)) {
|
} else if (StringUtils.equals("dataV", key)) {
|
||||||
return "screen";
|
return "screen";
|
||||||
|
Loading…
Reference in New Issue
Block a user