電站資訊: 修正Loading不會消失的問題
This commit is contained in:
parent
7e93a3691f
commit
e5856f3c33
@ -39,7 +39,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4 active" data-toggle="tab" href="#tab-overview-uptodate" role="tab">
|
<a class="nav-link fs-lg px-4 active" data-toggle="tab" href="#tab-overview-uptodate" role="tab">
|
||||||
<i class="fal fa-monitor-heart-rate text-success"></i> <span class="hidden-sm-down ml-1">即時資訊</span>
|
<i class="fal fa-monitor-heart-rate text-success"></i> <span class="hidden-sm-down ml-1" id="page_UpToDate">即時資訊</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-info" role="tab">
|
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-info" role="tab">
|
||||||
<i class="fal fa-info-square text-success"></i> <span class="hidden-sm-down ml-1">基本資料</span>
|
<i class="fal fa-info-square text-success"></i> <span class="hidden-sm-down ml-1" id="page_Info">基本資料</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-InverterInfo" role="tab">
|
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-InverterInfo" role="tab">
|
||||||
<i class="fal fa-digital-tachograph text-success"></i> <span class="hidden-sm-down ml-1">逆變器監控</span>
|
<i class="fal fa-digital-tachograph text-success"></i> <span class="hidden-sm-down ml-1" id="page_InverterInfo">逆變器監控</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-inverter" role="tab">
|
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-inverter" role="tab">
|
||||||
<i class="fal fa-analytics text-success"></i> <span class="hidden-sm-down ml-1">逆變器分析</span>
|
<i class="fal fa-analytics text-success"></i> <span class="hidden-sm-down ml-1" id="page_Inverter">逆變器分析</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -75,7 +75,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-history" role="tab">
|
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-history" role="tab">
|
||||||
<i class="fal fa-history text-success"></i> <span class="hidden-sm-down ml-1">歷史資料</span>
|
<i class="fal fa-history text-success"></i> <span class="hidden-sm-down ml-1" id="page_History">歷史資料</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-exception" role="tab">
|
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-exception" role="tab">
|
||||||
<i class="fal fa-sensor-alert text-success"></i> <span class="hidden-sm-down ml-1">異常記錄</span>
|
<i class="fal fa-sensor-alert text-success"></i> <span class="hidden-sm-down ml-1" id="page_Exception">異常記錄</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@
|
|||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-operationRecord" role="tab">
|
<a class="nav-link fs-lg px-4" data-toggle="tab" href="#tab-overview-operationRecord" role="tab">
|
||||||
<i class="fal fa-digital-tachograph text-success"></i> <span class="hidden-sm-down ml-1">運維記錄</span>
|
<i class="fal fa-digital-tachograph text-success"></i> <span class="hidden-sm-down ml-1" id="page_OperationRecord">運維記錄</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
@ -196,8 +196,47 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
function checkPage() {
|
||||||
|
isloadingdone_uptodate = true;
|
||||||
|
isloadingdone_info = true;
|
||||||
|
isloadingdone_inverterinfo = true;
|
||||||
|
isloadingdone_inverter = true;
|
||||||
|
isloadingdone_history = true;
|
||||||
|
isloadingdone_exception = true;
|
||||||
|
isloadingdone_operation = true;
|
||||||
|
var i1 = document.getElementById("page_UpToDate");
|
||||||
|
var i2 = document.getElementById("page_Info");
|
||||||
|
var i3 = document.getElementById("page_InverterInfo");
|
||||||
|
var i4 = document.getElementById("page_Inverter");
|
||||||
|
var i5 = document.getElementById("page_History");
|
||||||
|
var i6 = document.getElementById("page_Exception");
|
||||||
|
var i7 = document.getElementById("page_OperationRecord");
|
||||||
|
if (i1 != null)
|
||||||
|
{
|
||||||
|
isloadingdone_uptodate = false;
|
||||||
|
}
|
||||||
|
if (i2 != null) {
|
||||||
|
isloadingdone_info = false;
|
||||||
|
}
|
||||||
|
if (i3 != null) {
|
||||||
|
isloadingdone_inverterinfo = false;
|
||||||
|
}
|
||||||
|
if (i4 != null) {
|
||||||
|
isloadingdone_inverter = false;
|
||||||
|
}
|
||||||
|
if (i5 != null) {
|
||||||
|
isloadingdone_history = false;
|
||||||
|
}
|
||||||
|
if (i6 != null) {
|
||||||
|
isloadingdone_exception = false;
|
||||||
|
}
|
||||||
|
if (i7 != null) {
|
||||||
|
isloadingdone_operation = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
checkPage();
|
||||||
var url = new URL(location.href);
|
var url = new URL(location.href);
|
||||||
stationId = url.searchParams.get('stationId');
|
stationId = url.searchParams.get('stationId');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user