From a9959ce537b65a65d594391994e56c7fbf3d4f90 Mon Sep 17 00:00:00 2001 From: "2584795794@qq.com" <2584795794@qq.com> Date: Sat, 20 Dec 2025 15:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=95=B0=E6=8D=AE=E7=9B=91?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataMonitor/components/DataTableCard.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue b/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue index 6d9b293..aac81ac 100644 --- a/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue +++ b/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue @@ -36,7 +36,7 @@ @@ -113,14 +113,14 @@ const fetchData = async () => { } const res = await getMonitorList(params) || {} // 通道是否在线:0 不在线 、1 在线 - const onlineStatus = { - 0: '不在线', - 1: '在线' - } + // const onlineStatus = { + // '0': '离线', + // '1': '在线' + // } // 处理数据,添加在线状态 data.value = (res || []).map(item => ({ ...item, - online: onlineStatus[item.sfzx] + online: item.sfzx == '1' ? 1 : 0 })) } catch (error) { ElMessage.error(`获取${props.title}数据失败`) @@ -137,7 +137,7 @@ const total = ref(0) // 获取表格行类名 const getRowClassName = ({ row }) => { - return row.online == 1 ? 'online-row' : 'offline-row' + return row.online == '1' ? 'online-row' : 'offline-row' } // 刷新处理