調整報表管理頁面,隱藏不必要的匯出按鈕,並修正用電度數顯示欄位順序

This commit is contained in:
koko 2025-08-27 16:48:50 +08:00
parent 134714cad2
commit 24014747f2

View File

@ -268,7 +268,7 @@
>
匯出
</button>
<div id="ArchiveBtnDiv" style="display: none">
<!-- <div id="ArchiveBtnDiv" style="display: none">
<button
type="button"
class="btn btn-info"
@ -280,7 +280,7 @@
<span class="h6 text-light pl-2" id="lastUpdateTime"
>最後更新時間 :
</span>
</div>
</div> -->
<div
id="tableLoading"
@ -549,7 +549,7 @@
).hide();
$("#compareTypeBtnsDiv").hide();
$("#compareAreaBtnsDiv").hide();
$("#ArchiveBtnDiv").hide();
// $("#ArchiveBtnDiv").hide();
const value = $(this).data("value");
const type = $(this).data("type");
@ -569,7 +569,7 @@
} else if (type === "elec") {
$("#elecTimeText").text("月份");
$("#elecMonthDate").show();
$("#ArchiveBtnDiv").show();
// $("#ArchiveBtnDiv").show();
$("#school_zone").hide();
$("#building").hide();
$(".price").hide();
@ -1044,17 +1044,17 @@
const preMonth = (preDate.getMonth() + 1).toString().padStart(2, "0");
datesColumns = [
{ title: "項次", data: "rowIndex", width: "60px" },
{
title: "當月用電度數/(第一校區+第二校區)%",
data: "proportion",
width: "120px",
},
{ title: "單位", data: "dep_name", width: "120px" },
{
title: `選擇月份 <br>${year}${month}(A)`,
data: "now_month_kWh",
width: "120px",
},
{
title: "當月用電度數/(第一校區+第二校區)%",
data: "proportion",
width: "120px",
},
{
title: `前一月份 <br>${preYear}${preMonth}(B)`,
data: "last_month_kWh",