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