From c893e1dc464bb6eb880566b55ba1e38966780527 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 07 十一月 2023 10:26:27 +0800
Subject: [PATCH] feat: 展示设备id改为展示设备名,云端设备编码添加超出截断

---
 src/views/dashboard/components/DeviceNumberInfo.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/dashboard/components/DeviceNumberInfo.vue b/src/views/dashboard/components/DeviceNumberInfo.vue
index 839a73c..6182433 100644
--- a/src/views/dashboard/components/DeviceNumberInfo.vue
+++ b/src/views/dashboard/components/DeviceNumberInfo.vue
@@ -12,8 +12,12 @@
       <el-scrollbar always class="scroller">
         <div class="device-t">浜戠璁惧缂栫爜</div>
         <div class="device-b">
-          <div v-for="(item, index) in deviceInfo?.deviceIDList" :key="index" class="device-info">
-            {{ item }}
+          <div v-for="item in deviceInfo?.deviceList" :key="item.deviceID" class="device-info">
+            <el-popover placement="top" :width="200" trigger="click" :content="item.deviceID">
+              <template #reference>
+                <el-text truncated style="color: #fff; max-width: 100px">{{ item.deviceID }}</el-text>
+              </template>
+            </el-popover>
           </div>
         </div>
       </el-scrollbar>

--
Gitblit v1.8.0