diff --git a/Frontend/_reportManagement.html b/Frontend/_reportManagement.html
index 5a963df..d089ba4 100644
--- a/Frontend/_reportManagement.html
+++ b/Frontend/_reportManagement.html
@@ -247,6 +247,7 @@
month: "ExportElectricList",
year: "ExportElectricList",
compare: "ExportElectricCompareList",
+ compareForEachTotal: "ExportElectricEachTotalCompareList",
},
},
};
@@ -1008,7 +1009,10 @@
}
function setExportList() {
- const tableType = $("li.active [name=reportTypeRadio]").data("value");
+ const tableType =
+ $("li.active [name=reportTypeRadio]").data("type") === "compare"
+ ? "compareForEachTotal"
+ : $("li.active [name=reportTypeRadio]").data("value");
var sent_data = getListSendData();
if (!Array.isArray(sent_data)) {
sent_data = [sent_data];
@@ -1063,7 +1067,7 @@
//選擇棟別
function SelectBuild(e, building_tag) {
- console.log(building_tag)
+ console.log(building_tag);
if (SelectBuildings.includes(building_tag)) {
SelectBuildings = SelectBuildings.filter((bui) => bui !== building_tag);
} else {
@@ -1219,7 +1223,7 @@
}
$("#building").find(".item").empty();
$("#building").find(".item").append(html);
- console.log(selectZoneBui.map(({ building_tag }) => building_tag))
+ console.log(selectZoneBui.map(({ building_tag }) => building_tag));
SelectBuildings = selectZoneBui.map(({ building_tag }) => building_tag);
}