From fb8bbbf5f564c0e03e45df84bb52c453d83b6c9e Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Fri, 18 Jul 2025 09:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E8=AE=BE?= =?UTF-8?q?=E5=A4=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/equipmentManagement/devices/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/equipmentManagement/devices/index.vue b/src/views/equipmentManagement/devices/index.vue index 340cc03..c5e9dcf 100644 --- a/src/views/equipmentManagement/devices/index.vue +++ b/src/views/equipmentManagement/devices/index.vue @@ -409,7 +409,7 @@ const handleUnbind = (row) => { id: row.id } api.deviceUnbind(data).then(res => { - if (res.code ==200) { + if (res.code == 200) { proxy?.$modal.msgSuccess(res.msg) getList(); // 初始化列表数据 } else { @@ -483,6 +483,7 @@ const handleUpdate = async (row?: deviceForm) => { getDeviceType(); try { if (row) { + await nextTick(); Object.assign(form.value, row); form.value.image = row.devicePic // 编辑时根据已有值显示字段 @@ -534,7 +535,7 @@ const handleDeviceTypeChange = async (deviceTypeId: string | number) => { return; } const res = await api.getCommunicationMode({ id: deviceTypeId }); - if (res.code ==200 && res.data) { + if (res.code == 200 && res.data) { communicationModeInfo.value = res.data; // 根据通讯方式确定显示哪个字段 if (res.data.communicationMode == '1') { // 蓝牙设备 - 显示MAC @@ -754,7 +755,7 @@ const beforeImportUpload = (file: any) => { //添加tokenf方法head_upload 直接返回 getBearerToken() const head_upload = () => getBearerToken(); const handleImportSuccess = (response: any) => { - if (response.code ==200) { + if (response.code == 200) { importResult.value.isShow = true if (response.data) { importResult.value.succeed = response.data.successCount || 0