前端逻辑调整
This commit is contained in:
parent
abaf0757e5
commit
670a144114
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue