diff --git a/src/views/screen/components/common/item-wrap/item-wrap.vue b/src/views/screen/components/common/item-wrap/item-wrap.vue
index 2be55ce..e38df89 100644
--- a/src/views/screen/components/common/item-wrap/item-wrap.vue
+++ b/src/views/screen/components/common/item-wrap/item-wrap.vue
@@ -7,6 +7,22 @@
{{ title }}
+
+
+ {{ tips }}
+
+
+
@@ -16,13 +32,16 @@
@@ -62,6 +81,12 @@ $item_title_content-height: calc(100% - 60px);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
+
+ .question-icon {
+ position: absolute;
+ right: 20px;
+ z-index: 999;
+ }
}
:deep(.dv-border-box-content) {
@@ -78,3 +103,8 @@ $item_title_content-height: calc(100% - 60px);
height: 100%;
}
+
diff --git a/src/views/screen/index.vue b/src/views/screen/index.vue
index 5f61d2b..7f70d0a 100644
--- a/src/views/screen/index.vue
+++ b/src/views/screen/index.vue
@@ -23,6 +23,7 @@
:key="item.componentName"
:class="[getComponentClass(item.componentName)]"
:title="item.title"
+ :tips="getComponentTips(item.componentName)"
>
(componentName) => {
}
return className;
});
+const getComponentTips = computed(() => (componentName) => {
+ let tips = '';
+ switch (componentName) {
+ case 'AccessStatus':
+ tips = '全网接入情况';
+ break;
+ case 'MajorSystemHealthStatus':
+ tips = '重要系统健康状态';
+ break;
+ case 'MajorAlert':
+ tips = '重要告警';
+ break;
+ case 'AccessSituation':
+ tips = 'IT资源接入情况';
+ break;
+ case 'AlarmDynamic':
+ tips = '实时告警动态';
+ break;
+ case 'AccessUsageStatus':
+ tips = '各资源接入及使用情况';
+ break;
+ case 'ResourceType':
+ tips = '资源类型';
+ break;
+ case 'AlarmTrend':
+ tips = '告警趋势图';
+ break;
+ case 'AlarmStatistics':
+ tips = '告警级别统计';
+ break;
+ }
+ return tips;
+});
const getLayout = (id) => {
return new Promise((resolve) => {
setTimeout(() => {