[Forntend][系統監控] 3D 電梯 排序調整

This commit is contained in:
dev01 2022-12-02 11:21:05 +08:00
parent 5d06f5534e
commit 3f8802b1d6

View File

@ -861,7 +861,7 @@
var subSeviceData = []; //每個設備訂閱點位值 var subSeviceData = []; //每個設備訂閱點位值
var floList = []; //每個樓層 var floList = []; //每個樓層
var elevObj = null; //左側 2D 電梯物件 var elevObj = null; //左側 2D 電梯物件
var viewer3DNodeIds = [223, 228, 233]; var viewer3DNodeIds = [233, 228, 223];
var elev3DBind = {}; var elev3DBind = {};
var elev3DOption = {}; var elev3DOption = {};
var elev3DObj = []; var elev3DObj = [];
@ -973,9 +973,11 @@
subDeviceSetEleManNotSerFloor(master); subDeviceSetEleManNotSerFloor(master);
}); });
myBaja.setSubscribeDeviceEndCallBack(function (data) { myBaja.setSubscribeDeviceEndCallBack(function (data) {
let devNumArr = data.map(x => x.device_number_full).Distinct();
$.each(devNumArr, (idx, devNum) => {
let devNumArr = data.map(x => { return { devNum: x.device_number_full, priority: allDevList.filter(y => y.device_number == x.device_number_full)[0]?.priority } }).DistinctBy("devNum");
devNumArr = devNumArr.oSort("priority");
$.each(devNumArr, (idx, devObj) => {
devNum = devObj.devNum;
let subData = subSeviceData.filter(x => x.device_number == devNum)[0]; let subData = subSeviceData.filter(x => x.device_number == devNum)[0];
if (subData) { if (subData) {