diff --git a/core/core-backend/src/main/java/io/dataease/rmonitor/manage/ResourceMonitorManage.java b/core/core-backend/src/main/java/io/dataease/rmonitor/manage/ResourceMonitorManage.java index d234616ea9..a68d22d67e 100644 --- a/core/core-backend/src/main/java/io/dataease/rmonitor/manage/ResourceMonitorManage.java +++ b/core/core-backend/src/main/java/io/dataease/rmonitor/manage/ResourceMonitorManage.java @@ -1,5 +1,6 @@ package io.dataease.rmonitor.manage; +import io.dataease.constant.DataSourceType; import io.dataease.exception.DEException; import io.dataease.rmonitor.bo.PerMonitorCheckBO; import io.dataease.rmonitor.bo.PerMonitorNodeBO; @@ -45,6 +46,7 @@ public class ResourceMonitorManage { List dsBos = dsFreeResources.stream().map(node -> { PerMonitorNodeBO bo = BeanUtils.copyBean(new PerMonitorNodeBO(), node); bo.setLeaf(!StringUtils.equals("folder", node.getType())); + bo.setExtraFlag(DataSourceType.valueOf(node.getType()).getFlag()); return bo; }).collect(Collectors.toList()); List dsTree = TreeUtils.mergeTree(dsBos, PerMonitorNodeBO.class, false); @@ -79,7 +81,7 @@ public class ResourceMonitorManage { } private String convertBusiFlag(String key) { - if (StringUtils.equals("dashboard", key)){ + if (StringUtils.equals("dashboard", key)) { return "panel"; } else if (StringUtils.equals("dataV", key)) { return "screen";