From 295c573e0ff9004cb683788806a8d09de26e0e11 Mon Sep 17 00:00:00 2001 From: LCJ-MinYa <1049468118@qq.com> Date: Fri, 24 Jan 2025 10:08:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=A7=E5=B1=8F=E5=8F=AF=E8=A7=86?= =?UTF-8?q?=E5=8C=96tips=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/item-wrap/item-wrap.vue | 30 ++++++++++++++++ src/views/screen/index.vue | 36 +++++++++++++++++++ 2 files changed, 66 insertions(+) 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 }}  
+ + + +
@@ -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(() => {