| | |
| | | /* if (!(items[i].monitorPointId)) { |
| | | items[i].monitorPointName = items[i].areaName; |
| | | } */ |
| | | const showName = items[i].showName = items[i].mac ? '设备:' + items[i].deviceName : (items[i].monitorPointId ? '监测点:' + items[i].monitorPointName : items[i].areaName) + items[i].professionName; |
| | | const showName = this.items[i].showName = |
| | | items[i].mac ? ('设备:' + items[i].deviceName) : |
| | | ((items[i].monitorPointId ? '监测点:' + items[i].monitorPointName : items[i].areaName) + (items[i].professionName ? items[i].professionName : '')); |
| | | const legendName = items[i].formatTime + label + showName; |
| | | items[i].legendName = option.legend.data[i] = legendName; |
| | | if (res.data.datas[i][sensorKey]) { |
| | |
| | | for (const key in res.data.sortList[i]) { |
| | | const split = key.split('-'); |
| | | this.sensorKeys.forEach(sensor => { |
| | | if (sensor.key === split[0]) { |
| | | if (sensor.key === split[0] && res.data.sortList[i][key] != 0) { |
| | | this.resultArr.push({ |
| | | sensorName: sensor.name, |
| | | monitorPointName: this.items[split[1]].showName, |