debug: 電站總攬-條列式的燈號取代編號,日照小時改為日均發電度數

This commit is contained in:
wanling040@gmail.com 2022-07-28 09:22:56 +08:00
parent 47a57d039a
commit 7ad987c899

View File

@ -95,7 +95,7 @@
<div class="col card px-0 mx-2"> <div class="col card px-0 mx-2">
<div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap"> <div class="card-header bg-fusion-25 py-2 pr-3 d-flex align-items-center flex-wrap">
<h4 class="mb-0 font-weight-bold"><span class="fal fa-sun mr-1"></span> 日照度</h4> <h4 class="mb-0 font-weight-bold"><span class="fal fa-sun mr-1"></span> 日照度</h4>
<div class="ml-auto">k W/㎡</div> <div class="ml-auto">W/㎡</div>
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
@ -229,12 +229,12 @@
<table id="solarTable" class="table table-bordered table-hover m-0 text-center"> <table id="solarTable" class="table table-bordered table-hover m-0 text-center">
<thead class="thead-themed"> <thead class="thead-themed">
<tr> <tr>
<th>編號</th> <th>狀態</th>
<th>電站名稱</th> <th>電站名稱</th>
<th>裝置容量(kWp)</th> <th>裝置容量(kWp)</th>
<th>累積發電量</th> <th>累積發電量</th>
<th>今日發電量</th> <th>今日發電量</th>
<th>發電小時</th> <th>日均發電度數</th>
<th>PR</th> <th>PR</th>
<th>日照</th> <th>日照</th>
<th>平均日照</th> <th>平均日照</th>
@ -273,12 +273,12 @@
<table id="solarTable" class="table table-bordered table-hover m-0 text-center"> <table id="solarTable" class="table table-bordered table-hover m-0 text-center">
<thead class="thead-themed"> <thead class="thead-themed">
<tr> <tr>
<th>編號</th> <th>狀態</th>
<th>電站名稱</th> <th>電站名稱</th>
<th>裝置容量(kWp)</th> <th>裝置容量(kWp)</th>
<th>累積發電量</th> <th>累積發電量</th>
<th>今日發電量</th> <th>今日發電量</th>
<th>發電小時</th> <th>日均發電度數</th>
<th>PR</th> <th>PR</th>
<th>日照</th> <th>日照</th>
<th>平均日照</th> <th>平均日照</th>
@ -461,24 +461,24 @@
var statusName; var statusName;
switch (val.healthStatus) { switch (val.healthStatus) {
case 1: case 1:
statusName = statusicon + "設備正常"; statusName = "設備正常";
break; break;
case 2: case 2:
statusName = statusicon + "設備斷線"; statusName = "設備斷線";
break; break;
case 3: case 3:
statusName = statusicon + "設備異常"; statusName = "設備異常";
break; break;
default: default:
statusName = "NULL"; statusName = "NULL";
} }
$('#solarTable').find('tbody').append('<tr>' + $('#solarTable').find('tbody').append('<tr>' +
'<td>' + val.code + '</td>' + '<td>' + statusicon + '</td>' +
'<td>' + val.name + '</td>' + '<td>' + val.name + '</td>' +
'<td>' + (toThousands(val.generatingCapacity.toFixed(3))) + '</td>' + '<td>' + (toThousands(val.generatingCapacity.toFixed(3))) + '</td>' +
'<td>' + (toThousands(val.total_kWh.toFixed(2))) + '</td>' + '<td>' + (toThousands(val.total_kWh.toFixed(2))) + '</td>' +
'<td>' + (toThousands(val.today_kWh.toFixed(2))) + '</td>' + '<td>' + (toThousands(val.today_kWh.toFixed(2))) + '</td>' +
'<td>' + (toThousands(val.solarHour.toFixed(2))) + '</td>' + '<td>' + (toThousands(val.today_kwhkwp.toFixed(2))) + '</td>' +
'<td>' + (toThousands(val.today_PR.toFixed(2))) + '</td>' + '<td>' + (toThousands(val.today_PR.toFixed(2))) + '</td>' +
'<td>' + (toThousands(val.today_irradiance.toFixed(2))) + '</td>' + '<td>' + (toThousands(val.today_irradiance.toFixed(2))) + '</td>' +
'<td>' + (toThousands(val.avg_irradiance.toFixed(2))) + '</td>' + '<td>' + (toThousands(val.avg_irradiance.toFixed(2))) + '</td>' +