diff --git a/src/views/model/heatapiconf/index.vue b/src/views/model/heatapiconf/index.vue index 29b10e8..eb9b7de 100644 --- a/src/views/model/heatapiconf/index.vue +++ b/src/views/model/heatapiconf/index.vue @@ -287,13 +287,13 @@ function handleUpdate(row) { }) return; } + getListDevice(row.orgCode); getHeatapiconf(_id).then(response => { form.value = response.data; form.value.excludeDevices = form.value.excludeDevices?.split(","); open.value = true; title.value = "修改供热办推送接口配置"; }); - getListDevice(); } /** 提交按钮 */ @@ -462,7 +462,7 @@ function turnToParamConf(row){ function getListDevice(orgCode) { let param = {}; - if(orgCode != null){ + if(orgCode != null && typeof orgCode === 'string'){ param.orgCode = orgCode; }else{ param.orgCode = form.value.orgCode;