歷史資料(更

This commit is contained in:
b110212000 2022-01-13 15:46:09 +08:00
parent 5abf511256
commit afa81d62c5
2 changed files with 43 additions and 40 deletions

View File

@ -2426,6 +2426,7 @@
function getTable() function getTable()
{ {
$('#all').hide();
if (historyRange == "") if (historyRange == "")
{ {
var today = new Date(); var today = new Date();
@ -2793,6 +2794,7 @@
'<td>' + tempALL.toFixed(2) + '</td>' + '<td>' + tempALL.toFixed(2) + '</td>' +
'</tr>'); '</tr>');
} }
$('#all').show();
}) })
} }

View File

@ -50,48 +50,49 @@
</div> </div>
<div id="all">
<div class="row mb-5">
<div class="card p-3 w-100">
<h5 class="font-weight-bold mb-3 pl-5 pb-3">總結</h5>
<table class="table m-0">
<thead>
<tr>
<th>時間</th>
<th>發電量(kWh)</th>
<th>有效日照時數</th>
<th>日照度(kWh/m2)</th>
<th>PR(%)</th>
<th>溫度(℃)</th>
</tr>
</thead>
<tbody id="HistoryTotalTable">
</tbody>
</table>
</div>
</div>
<div id="history-kWh-convas-div">
<canvas id="history-kWh"></canvas>
</div>
<div class="row mb-5"> <div class="row mb-5">
<div class="card p-3 w-100"> <div class="card p-3 w-100">
<h5 class="font-weight-bold mb-3 pl-5 pb-3">總結</h5> <h5 class="font-weight-bold mb-3 pl-5 pb-3">詳細資訊</h5>
<table class="table m-0"> <table class="table m-0">
<thead> <thead>
<tr> <tr>
<th>時間</th> <th>時間</th>
<th>發電量(kWh)</th> <th>發電量(kWh)</th>
<th>有效日照時數</th> <th>有效發電小時</th>
<th>日照度(kWh/m2)</th> <th>日照度(W/m2)</th>
<th>PR(%)</th> <th>PR(%)</th>
<th>溫度(℃)</th> <th>溫度(℃)</th>
</tr> </tr>
</thead> </thead>
<tbody id="HistoryTotalTable"> <tbody id="HistoryDetailTable">
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
<div id="history-kWh-convas-div">
<canvas id="history-kWh"></canvas>
</div>
<div class="row mb-5">
<div class="card p-3 w-100">
<h5 class="font-weight-bold mb-3 pl-5 pb-3">詳細資訊</h5>
<table class="table m-0">
<thead>
<tr>
<th>時間</th>
<th>發電量(kWh)</th>
<th>有效日照時數</th>
<th>日照度(W/m2)</th>
<th>PR(%)</th>
<th>溫度(℃)</th>
</tr>
</thead>
<tbody id="HistoryDetailTable">
</tbody>
</table>
</div>
</div>