From 9fdfb2f74b68e5600a69a888dbf6b5839db3387d Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Tue, 16 Jun 2026 11:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/components/line/index.vue | 27 +++++++++++++++++-- .../detail/components/line/index.vue | 27 +++++++++++++++++-- .../equipment/components/detail/index.vue | 15 ++++++++--- 3 files changed, 62 insertions(+), 7 deletions(-) diff --git a/src/view/masterStation/equipment/components/detail/components/line/index.vue b/src/view/masterStation/equipment/components/detail/components/line/index.vue index 12baff0..5b8376c 100644 --- a/src/view/masterStation/equipment/components/detail/components/line/index.vue +++ b/src/view/masterStation/equipment/components/detail/components/line/index.vue @@ -23,7 +23,7 @@ - + @@ -109,6 +112,24 @@ } }) } + // 解锁 + const unlock = async (row) => { + ElMessageBox.confirm('确认解锁吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(async () => { + const res = await serve.deviceOperation({ + id: row.ID, + gatewayId: row.gatewayId, + para: '0xAD' + }) + if (res.code === 0) { + ElMessage.success('操作成功') + getDeviceListByPage() + } + }) + }