我太傻

This commit is contained in:
b110212000 2021-09-23 19:22:48 +08:00
parent 4480132d2e
commit 80119fc6de

View File

@ -897,11 +897,12 @@
} }
$('#TableBody').empty(); $('#TableBody').empty();
$('#totbody').empty(); $('#totbody').empty();
haveinvertName = [];
return; return;
} }
var sta = ""; //var sta = "";
$('#TableBody').empty();
$('#totbody').empty(); $('#totbody').empty();
$('#tothead').empty(); $('#tothead').empty();
if (form == 0) {//日報表 if (form == 0) {//日報表
@ -911,7 +912,7 @@
var kWhkwp = 0; var kWhkwp = 0;
var ntd = 0; var ntd = 0;
var ntdone = 0; var ntdone = 0;
var sta = "";
$.each(rel.data, function (index, inverter) { $.each(rel.data, function (index, inverter) {
sta += "<tr>"; sta += "<tr>";
sta += "<td>" + inverter.report_date + "</td>"; sta += "<td>" + inverter.report_date + "</td>";
@ -961,6 +962,7 @@
stb += "</tr>"; stb += "</tr>";
$('#TableBody').empty();
$('#TableBody').append(sta); $('#TableBody').append(sta);
$('#totbody').append(stb); $('#totbody').append(stb);
$('#tothead').append(stc); $('#tothead').append(stc);
@ -974,7 +976,7 @@
var monthmoney = 0; var monthmoney = 0;
var monthmoneyone = 0; var monthmoneyone = 0;
var monthday = 0; var monthday = 0;
var sta = "";
var check_hire = false; var check_hire = false;
var sitedb = ""; var sitedb = "";
$.each(rel.data, function (index, inverter) { $.each(rel.data, function (index, inverter) {
@ -988,10 +990,10 @@
} }
}); });
sta += "<td>" + inverter.dayKWH + "</td>"; sta += "<td>" + inverter.dayKWH + "</td>";
sta += "<td>" + inverter.dayKWHp + "</td>"; sta += "<td>" + ((inverter.dayKWHp == null) ? 0 : inverter.dayKWHp) + "</td>";
sta += "<td>" + inverter.tothour + "</td>"; sta += "<td>" + inverter.tothour + "</td>";
sta += "<td>" + inverter.KWHKWP + "</td>"; sta += "<td>" + inverter.KWHKWP + "</td>";
sta += "<td>" + inverter.PR.toFixed(2) + "</td>"; sta += "<td>" + ((inverter.PR == null) ? 0 : inverter.PR.toFixed(2)) + "</td>";
sta += "<td>" + inverter.irradiance + "</td>"; sta += "<td>" + inverter.irradiance + "</td>";
sta += "<td>" + inverter.temperature + "</td>"; sta += "<td>" + inverter.temperature + "</td>";
if (showmoney == 1) { if (showmoney == 1) {
@ -1078,7 +1080,7 @@
}) })
} }
$('#TableBody').empty();
$('#TableBody').append(sta); $('#TableBody').append(sta);
$('#totbody').append(stb); $('#totbody').append(stb);
$('#tothead').append(stc); $('#tothead').append(stc);
@ -1094,7 +1096,7 @@
var monthmoney = 0; var monthmoney = 0;
var monthmoneyone = 0; var monthmoneyone = 0;
var monthday = 0; var monthday = 0;
var sta = "";
var check_hire = false; var check_hire = false;
var sitedb = ""; var sitedb = "";
$.each(rel.data, function (index, inverter) { $.each(rel.data, function (index, inverter) {
@ -1198,7 +1200,7 @@
}) })
} }
$('#TableBody').empty();
$('#TableBody').append(sta); $('#TableBody').append(sta);
$('#totbody').append(stb); $('#totbody').append(stb);
$('#tothead').append(stc); $('#tothead').append(stc);