From 67864e3c79ec01a12694fa4dca58c5f8bb04fafa Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 30 Dec 2025 17:57:56 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E9=87=87=E9=9B=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87-=E6=93=8D=E4=BD=9C=E6=A0=8F=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=A0=B9=E6=8D=AE=E8=BF=9E=E6=8E=A5=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/device/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index 6703ad4e..795cac6b 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -159,7 +159,7 @@ 编辑 @@ -364,6 +364,14 @@ const isRowConnected = (row: any) => { return String(getRowConnectValue(row)) === '1' } +const handleEdit = async (row: DeviceVO) => { + if (isRowConnected(row)) { + await message.alertWarning('设备在线状态,无法编辑,请先断开连接') + return + } + openForm('update', row.id) +} + const handleToggleConnect = async (row: DeviceVO) => { const id = row?.id if (!id) {