From c9e782fc87728ce13438d5132b212bf74d671081 Mon Sep 17 00:00:00 2001 From: Kai Date: Fri, 24 Sep 2021 10:42:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9=E9=80=86=E8=AE=8A?= =?UTF-8?q?=E5=99=A8=E7=9B=A3=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StationOverviewInfo.cshtml | 18 +++++--- .../StationOverview/_InverterInfo.cshtml | 41 +++++++++++++------ 2 files changed, 41 insertions(+), 18 deletions(-) diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml index 8b784e3..50841ca 100644 --- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml +++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml @@ -2744,9 +2744,15 @@ return; } $("#Invertercard-Name").html(rel.data.name); - $("#Invertercard-kwh").html(rel.data.kwh); - $("#Invertercard-money").html(rel.data.today_Money.toFixed()); - $("#Invertercard-pr").html(rel.data.today_PR); + $("#Invertercard-kwh").html(rel.data.kwh.toFixed(2)); + @if (ViewBag.myUser.Role.Auths.Contains("ShowMoney")) + { + + $("#Invertercard-money").html(rel.data.today_Money.toFixed()); + + } + $("#Invertercard-Capacity").html(rel.data.generatingCapacity.toFixed(3)); + $("#Invertercard-pr").html(rel.data.today_PR.toFixed(2)); var str = "
" + "
" $('#prbar').remove(); @@ -2764,9 +2770,9 @@ break; } $("#Invertercard-type").html(TypeName); - var time = new Date(rel.data.createdAt); - $("#Invertercard-date").html(time.getMonth() + "/" + time.getDate() + " " + time.getHours() + ":" + time.getMinutes()); - + @*var time = new Date(rel.data.createdAt); + $("#Invertercard-date").html(time.getMonth() + "/" + time.getDate() + " " + time.getHours() + ":" + time.getMinutes());*@ + $("#Invertercard-date").html(rel.data.electricityMeterAt); var urlPath = "../upload/power_station/" + rel.data.id + "/" + rel.data.mainDisplay; var xmlhttp; diff --git a/SolarPower/Views/StationOverview/_InverterInfo.cshtml b/SolarPower/Views/StationOverview/_InverterInfo.cshtml index 3918e43..a1f5b9f 100644 --- a/SolarPower/Views/StationOverview/_InverterInfo.cshtml +++ b/SolarPower/Views/StationOverview/_InverterInfo.cshtml @@ -6,25 +6,43 @@
...
-

新竹巨城站

-

+

新竹巨城站

+
+

27°C

+
-

發電量

-

185 kWh

-

27°C

+
+

發電量

+

0.00 kWh

+
+ @if (ViewBag.myUser.Role.Auths.Contains("ShowMoney")) + { +
+ @*

發電金額

*@ +

0 NT

+
+ }
-

發電金額

-

2,5840 NT

-

自建躉售

+
+

裝置容量

+

0.00 kWp

+
+
+

自建躉售

+
-

PR值

-

90 %

-

17:50:36

+
+

PR值

+

0 %

+
+
+

06-30 17:50

+
@@ -32,7 +50,6 @@