調整報表管理頁面,隱藏不必要的匯出按鈕,並修正用電度數顯示欄位順序
This commit is contained in:
		
							parent
							
								
									134714cad2
								
							
						
					
					
						commit
						24014747f2
					
				@ -268,7 +268,7 @@
 | 
				
			|||||||
            >
 | 
					            >
 | 
				
			||||||
              匯出
 | 
					              匯出
 | 
				
			||||||
            </button>
 | 
					            </button>
 | 
				
			||||||
            <div id="ArchiveBtnDiv" style="display: none">
 | 
					            <!-- <div id="ArchiveBtnDiv" style="display: none">
 | 
				
			||||||
              <button
 | 
					              <button
 | 
				
			||||||
                type="button"
 | 
					                type="button"
 | 
				
			||||||
                class="btn btn-info"
 | 
					                class="btn btn-info"
 | 
				
			||||||
@ -280,7 +280,7 @@
 | 
				
			|||||||
              <span class="h6 text-light pl-2" id="lastUpdateTime"
 | 
					              <span class="h6 text-light pl-2" id="lastUpdateTime"
 | 
				
			||||||
                >最後更新時間 :
 | 
					                >最後更新時間 :
 | 
				
			||||||
              </span>
 | 
					              </span>
 | 
				
			||||||
            </div>
 | 
					            </div> -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <div
 | 
					            <div
 | 
				
			||||||
              id="tableLoading"
 | 
					              id="tableLoading"
 | 
				
			||||||
@ -549,7 +549,7 @@
 | 
				
			|||||||
      ).hide();
 | 
					      ).hide();
 | 
				
			||||||
      $("#compareTypeBtnsDiv").hide();
 | 
					      $("#compareTypeBtnsDiv").hide();
 | 
				
			||||||
      $("#compareAreaBtnsDiv").hide();
 | 
					      $("#compareAreaBtnsDiv").hide();
 | 
				
			||||||
      $("#ArchiveBtnDiv").hide();
 | 
					      // $("#ArchiveBtnDiv").hide();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      const value = $(this).data("value");
 | 
					      const value = $(this).data("value");
 | 
				
			||||||
      const type = $(this).data("type");
 | 
					      const type = $(this).data("type");
 | 
				
			||||||
@ -569,7 +569,7 @@
 | 
				
			|||||||
      } else if (type === "elec") {
 | 
					      } else if (type === "elec") {
 | 
				
			||||||
        $("#elecTimeText").text("月份");
 | 
					        $("#elecTimeText").text("月份");
 | 
				
			||||||
        $("#elecMonthDate").show();
 | 
					        $("#elecMonthDate").show();
 | 
				
			||||||
        $("#ArchiveBtnDiv").show();
 | 
					        // $("#ArchiveBtnDiv").show();
 | 
				
			||||||
        $("#school_zone").hide();
 | 
					        $("#school_zone").hide();
 | 
				
			||||||
        $("#building").hide();
 | 
					        $("#building").hide();
 | 
				
			||||||
        $(".price").hide();
 | 
					        $(".price").hide();
 | 
				
			||||||
@ -1044,17 +1044,17 @@
 | 
				
			|||||||
      const preMonth = (preDate.getMonth() + 1).toString().padStart(2, "0");
 | 
					      const preMonth = (preDate.getMonth() + 1).toString().padStart(2, "0");
 | 
				
			||||||
      datesColumns = [
 | 
					      datesColumns = [
 | 
				
			||||||
        { title: "項次", data: "rowIndex", width: "60px" },
 | 
					        { title: "項次", data: "rowIndex", width: "60px" },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          title: "當月用電度數/(第一校區+第二校區)%",
 | 
				
			||||||
 | 
					          data: "proportion",
 | 
				
			||||||
 | 
					          width: "120px",
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        { title: "單位", data: "dep_name", width: "120px" },
 | 
					        { title: "單位", data: "dep_name", width: "120px" },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: `選擇月份 <br>${year}${month}(A)`,
 | 
					          title: `選擇月份 <br>${year}${month}(A)`,
 | 
				
			||||||
          data: "now_month_kWh",
 | 
					          data: "now_month_kWh",
 | 
				
			||||||
          width: "120px",
 | 
					          width: "120px",
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
          title: "當月用電度數/(第一校區+第二校區)%",
 | 
					 | 
				
			||||||
          data: "proportion",
 | 
					 | 
				
			||||||
          width: "120px",
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: `前一月份 <br>${preYear}${preMonth}(B)`,
 | 
					          title: `前一月份 <br>${preYear}${preMonth}(B)`,
 | 
				
			||||||
          data: "last_month_kWh",
 | 
					          data: "last_month_kWh",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user