| | |
| | | } |
| | | |
| | | // 添加电源系统和电池系统 |
| | | if (powerInfo.length) { |
| | | let info = powerInfo[0]; |
| | | res.data.map((item) => { |
| | | let tmp = {}; |
| | | tmp.id = item.battGroupId + "&" + info.params.powerDeviceId; |
| | | tmp.label = |
| | | info.label + |
| | | "-" + |
| | | item.stationName4 + |
| | | "-" + |
| | | item.battGroupName; |
| | | tmp.type = "TotalInfo"; |
| | | tmp.leaf = true; |
| | | tmp.powerDeviceId = info.params.powerDeviceId; |
| | | tmp.battGroupId = item.battGroupId; |
| | | // 仅电源设备添加组合界面 |
| | | if (regEquipType(tmp.powerDeviceId, "power")) { |
| | | result.push(tmp); |
| | | } |
| | | }); |
| | | } |
| | | // if (powerInfo.length) { |
| | | // let info = powerInfo[0]; |
| | | // res.data.map((item) => { |
| | | // let tmp = {}; |
| | | // tmp.id = item.battGroupId + "&" + info.params.powerDeviceId; |
| | | // tmp.label = |
| | | // info.label + |
| | | // "-" + |
| | | // item.stationName4 + |
| | | // "-" + |
| | | // item.battGroupName; |
| | | // tmp.type = "TotalInfo"; |
| | | // tmp.leaf = true; |
| | | // tmp.powerDeviceId = info.params.powerDeviceId; |
| | | // tmp.battGroupId = item.battGroupId; |
| | | // // 仅电源设备添加组合界面 |
| | | // if (regEquipType(tmp.powerDeviceId, "power")) { |
| | | // result.push(tmp); |
| | | // } |
| | | // }); |
| | | // } |
| | | } |
| | | // 9527电源信息 |
| | | powerInfo.map((item) => { |