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() + } + }) + }