電站資訊-歷史紀錄: 修正日均發電沒有更新的問題

This commit is contained in:
wanling040@gmail.com 2022-08-12 13:07:20 +08:00
parent fa93bb4834
commit c4137ecfa6

View File

@ -2888,16 +2888,16 @@
{
var avgK = 0;
if (groupType == 3) {
avgK = ALLavgdaykwh / rel.data.length;//(kwhALL / rel.data[0].generatingCapacity / ALLDays).toFixed(2);
avgK = (ALLavgdaykwh / rel.data.length).toFixed(2);//(kwhALL / rel.data[0].generatingCapacity / ALLDays).toFixed(2);
}
else {
avgdaykwh = kwhkwp;
avgK = kwhkwp;
}
$('#HistoryTotalTable').append('<tr>' +
'<td>' + TimestampALL + '</td>' +
'<td>' + (toThousands(kwhALL.toFixed(2))) + '</td>' +
'<td>' + (toThousands(avgK.toFixed(2))) + '</td>' +
'<td>' + (toThousands(avgK)) + '</td>' +
//'<td>' + irradianceALL.toFixed(2) + '</td>' + // 改成累積日照 by jiahao 2022-04-30 00:444
'<td>' + (toThousands(avgIrr_day.toFixed(2))) + '</td>' +
'<td>' + (toThousands(avgPR.toFixed(2))) + '</td>' +