前端逻辑调整

This commit is contained in:
zhangyue 2026-05-27 14:14:19 +08:00
parent abaf0757e5
commit 670a144114
1 changed files with 6 additions and 1 deletions

View File

@ -180,6 +180,7 @@
} }
console.log('check-----', formState.moduleList); console.log('check-----', formState.moduleList);
deviceData.temperature = data.temperature; deviceData.temperature = data.temperature;
relayData(formState.deployInfo.deployId);
} }
} catch (e) { } catch (e) {
// JSON // JSON
@ -375,7 +376,11 @@
// //
connectAndSubscribe(subscribeTopic, handleMessage); connectAndSubscribe(subscribeTopic, handleMessage);
getRelayList({ deployId: record.deployId }).then((res) => { relayData(record.deployId);
}
function relayData(deployIds) {
getRelayList({ deployId: deployIds }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
formState.moduleList = res.result.moduleList; formState.moduleList = res.result.moduleList;
formState.runList = res.result.runStatus; formState.runList = res.result.runStatus;