[Frontend] 修改總盤分盤匯出資料 api
This commit is contained in:
parent
ae11ca8e81
commit
655be1d43e
@ -247,6 +247,7 @@
|
|||||||
month: "ExportElectricList",
|
month: "ExportElectricList",
|
||||||
year: "ExportElectricList",
|
year: "ExportElectricList",
|
||||||
compare: "ExportElectricCompareList",
|
compare: "ExportElectricCompareList",
|
||||||
|
compareForEachTotal: "ExportElectricEachTotalCompareList",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -1008,7 +1009,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setExportList() {
|
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();
|
var sent_data = getListSendData();
|
||||||
if (!Array.isArray(sent_data)) {
|
if (!Array.isArray(sent_data)) {
|
||||||
sent_data = [sent_data];
|
sent_data = [sent_data];
|
||||||
@ -1063,7 +1067,7 @@
|
|||||||
|
|
||||||
//選擇棟別
|
//選擇棟別
|
||||||
function SelectBuild(e, building_tag) {
|
function SelectBuild(e, building_tag) {
|
||||||
console.log(building_tag)
|
console.log(building_tag);
|
||||||
if (SelectBuildings.includes(building_tag)) {
|
if (SelectBuildings.includes(building_tag)) {
|
||||||
SelectBuildings = SelectBuildings.filter((bui) => bui !== building_tag);
|
SelectBuildings = SelectBuildings.filter((bui) => bui !== building_tag);
|
||||||
} else {
|
} else {
|
||||||
@ -1219,7 +1223,7 @@
|
|||||||
}
|
}
|
||||||
$("#building").find(".item").empty();
|
$("#building").find(".item").empty();
|
||||||
$("#building").find(".item").append(html);
|
$("#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);
|
SelectBuildings = selectZoneBui.map(({ building_tag }) => building_tag);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user