| | |
| | | } |
| | | |
| | | var real_time_records = result.Data; |
| | | // console.log(real_time_records, 213) |
| | | if (real_time_records == null || real_time_records.length == 0) { |
| | | util.popup.showModal('', '未开启监控'); |
| | | return; |
| | | } |
| | | let chartData = [] |
| | | real_time_records.forEach(element => { |
| | | if(element.DataStatus.length == 0){ |
| | | chartData.push(element) |
| | | } |
| | | }); |
| | | |
| | | // console.log(real_time_records, 213) |
| | | if (real_time_records == null || real_time_records.length == 0) { |
| | | util.popup.showModal('', '未开启监控'); |
| | | return; |
| | | } |
| | | var last_record = real_time_records[real_time_records.length - 1]; |
| | | last_record.DataValue = parseFloat(last_record.DataValue).toFixed(2) |
| | | // console.log(last_record); |