From b364fb4aec5aa27d636d9b153603d94b685c2d48 Mon Sep 17 00:00:00 2001 From: sexygoat <1538832180@qq.com> Date: Thu, 21 May 2026 15:43:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset-information/components/BasicInfoCard.vue | 8 ++++---- .../asset-information/composables/useAssetInfo.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/asset-management/asset-information/components/BasicInfoCard.vue b/src/views/asset-management/asset-information/components/BasicInfoCard.vue index 9ee8e47..4923d62 100644 --- a/src/views/asset-management/asset-information/components/BasicInfoCard.vue +++ b/src/views/asset-management/asset-information/components/BasicInfoCard.vue @@ -130,11 +130,11 @@ }} - {{ selectedDeviceStatusCard.network_status === 1 ? '正常' : '停机' }} + {{ getOnlineStatusName(cardInfo?.online_status) }} - @@ -651,7 +651,7 @@ }) }) - // 设备详情状态字段统一从选中的绑定卡取值: + // 设备详情里的实名状态和实名时间从选中的绑定卡取值: // 只有一张卡时直接取该卡,多张卡时仅取 is_current=true 的卡。 const selectedDeviceStatusCard = computed(() => { if (!props.cardInfo?.cards || props.cardInfo.cards.length === 0) { diff --git a/src/views/asset-management/asset-information/composables/useAssetInfo.ts b/src/views/asset-management/asset-information/composables/useAssetInfo.ts index c8ae6dd..11d0b2d 100644 --- a/src/views/asset-management/asset-information/composables/useAssetInfo.ts +++ b/src/views/asset-management/asset-information/composables/useAssetInfo.ts @@ -332,7 +332,7 @@ export function useAssetInfo() { } if (data.cards && data.cards.length > 0) { // 合并实时卡数据与原始卡数据,保留 real_name_at 等静态字段。 - // 设备详情的实名状态、在线状态、实名时间统一依赖选中的绑定卡,因此不能在实时刷新时丢掉这些字段。 + // 设备详情里的实名状态、实名时间依赖选中的绑定卡,因此不能在实时刷新时丢掉这些字段。 cardInfo.value.cards = mergeAssetBoundCards(cardInfo.value.cards || [], data.cards) } if (data.last_data_check_at !== undefined) {