明树Git Lab

Commit e2be7dcd authored by zfp1's avatar zfp1

update

parent d0837591
...@@ -209,6 +209,10 @@ async function getJiankong(req, res, next) { ...@@ -209,6 +209,10 @@ async function getJiankong(req, res, next) {
let smc = await DB.CollectSMC.findOne(); let smc = await DB.CollectSMC.findOne();
traccode.ws = ws; traccode.ws = ws;
traccode.smc = smc; traccode.smc = smc;
//
let onlineArr = await deviceModule.getDeviceOnlineMap();
smc.onLineState = onlineArr.includes(smc.deviceNumber) ? 1 : 0;
ws.onLineState = onlineArr.includes(ws.deviceNumber) ? 1 : 0;
} }
if (traccode.indEnvOnOff) { if (traccode.indEnvOnOff) {
// 工业环境 // 工业环境
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment