From 842ac525d5a32e9147234526a801d194aba919c0 Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 30 Jun 2022 14:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B0=E9=9B=BB=E8=BA=89=E5=94=AE=E7=B4=80?= =?UTF-8?q?=E9=8C=84=E6=9F=A5=E8=A9=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Views/ElectricitySoldRecord/Index.cshtml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/SolarPower/Views/ElectricitySoldRecord/Index.cshtml b/SolarPower/Views/ElectricitySoldRecord/Index.cshtml index 5d341a2..28e49e5 100644 --- a/SolarPower/Views/ElectricitySoldRecord/Index.cshtml +++ b/SolarPower/Views/ElectricitySoldRecord/Index.cshtml @@ -153,6 +153,7 @@
+
@@ -184,6 +185,7 @@ +
@@ -551,7 +553,7 @@ "data": "function" }], "language": { - "emptyTable": "查無資料", + "emptyTable": "目前無資料", "processing": "處理中...", "loadingRecords": "載入中...", "lengthMenu": "顯示 _MENU_ 項結果", @@ -595,7 +597,7 @@ if (data == null || data.length == 0) { this.data = []; } - + $("#wait").hide(); return data; } }, @@ -606,6 +608,7 @@ } function Searchform() { + $("#wait").show(); /* console.log(selecterd_powerstationId);*/ if (searchType == 0 || searchType == 1) { timerange = $('#DateGettext').val(); @@ -613,6 +616,10 @@ else { timerange = $('#DateGet').val(); } + var table = $('#RecordTable').DataTable(); + + table.clear().draw(); + RecordTable.ajax.reload(); }