From 985befd1aacce206d49925399aba85a51c50ea6e Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 28 十一月 2023 17:20:03 +0800
Subject: [PATCH] feat: 下发后重连plc
---
src/views/dashboard/components/DeviceNumberInfo.vue | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/views/dashboard/components/DeviceNumberInfo.vue b/src/views/dashboard/components/DeviceNumberInfo.vue
index 839a73c..c0b8a7f 100644
--- a/src/views/dashboard/components/DeviceNumberInfo.vue
+++ b/src/views/dashboard/components/DeviceNumberInfo.vue
@@ -4,7 +4,11 @@
<div class="device-t">鏈満璁惧缂栫爜</div>
<div class="device-b">
<div class="device-info">
- {{ deviceInfo?.systemDeviceID }}
+ <el-popover placement="top" :width="200" trigger="click" :content="deviceInfo?.systemDeviceID">
+ <template #reference>
+ <el-text truncated style="color: #fff; max-width: 70px">{{ deviceInfo?.systemDeviceID }}</el-text>
+ </template>
+ </el-popover>
</div>
</div>
</div>
@@ -12,8 +16,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