Commit 283de75024f02c06e8e1e9a02999f93bf535bd89

Authored by fengtao
1 parent d09222f6

fix:DEFECT-487红标箭头感叹号位置,鼠标移入可以提示相关描述问题

... ... @@ -14,7 +14,13 @@
14 14 />
15 15 <CountTo v-else :endVal="0" />
16 16 </div>
17   - <img src="/src/assets/images/tip.png" style="width: 1.125rem; height: 1.125rem" />
  17 + <Tooltip>
  18 + <template #title>
  19 + 设备数 :{{ growCardList?.deviceInfo.sumCount }} 今日新增
  20 + {{ toThousands(growCardList?.deviceInfo?.todayAdd) }}
  21 + </template>
  22 + <img src="/src/assets/images/tip.png" style="width: 1.125rem; height: 1.125rem" />
  23 + </Tooltip>
18 24 </div>
19 25 <div> 设备数 </div>
20 26 </div>
... ... @@ -49,7 +55,16 @@
49 55 />
50 56 <CountTo v-else :end-val="0" />
51 57 </div>
52   - <img src="/src/assets/images/tip.png" style="width: 1.125rem; height: 1.125rem" />
  58 + <Tooltip>
  59 + <template #title>
  60 + {{
  61 + !isAdmin(role)
  62 + ? `告警数:今日新增${toThousands(growCardList?.alarmInfo?.todayAdd)}`
  63 + : `租户总量:今日新增${toThousands(growCardList?.alarmInfo?.todayAdd)}`
  64 + }}
  65 + </template>
  66 + <img src="/src/assets/images/tip.png" style="width: 1.125rem; height: 1.125rem" />
  67 + </Tooltip>
53 68 </div>
54 69 <div> {{ !isAdmin(role) ? `告警数` : '租户总量' }}</div>
55 70 </div>
... ... @@ -87,7 +102,16 @@
87 102 />
88 103 <CountTo v-else :end-val="0" />
89 104 </div>
90   - <img src="/src/assets/images/tip.png" style="width: 1.125rem; height: 1.125rem" />
  105 + <Tooltip>
  106 + <template #title>
  107 + {{
  108 + !isAdmin(role)
  109 + ? `消息数:今日新增${toThousands(growCardList?.messageInfo?.todayMessageAdd)}`
  110 + : `客户总量:今日新增${toThousands(growCardList?.messageInfo?.todayMessageAdd)}`
  111 + }}
  112 + </template>
  113 + <img src="/src/assets/images/tip.png" style="width: 1.125rem; height: 1.125rem" />
  114 + </Tooltip>
91 115 </div>
92 116 <div> {{ !isAdmin(role) ? `消息数` : '客户总量' }}</div>
93 117 </div>
... ... @@ -108,6 +132,8 @@
108 132 import { isAdmin } from '/@/enums/roleEnum';
109 133 import { toThousands } from '/@/utils/fnUtils';
110 134 import { CountTo } from '/@/components/CountTo/index';
  135 + import { Tooltip } from 'ant-design-vue';
  136 +
111 137 defineProps<{
112 138 role: string;
113 139 }>();
... ...