瀏覽代碼

urgent fix

TonyKang 3 年之前
父節點
當前提交
cb68e111ba
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      web/building_saas/report/js/rpt_main.js

+ 4 - 4
web/building_saas/report/js/rpt_main.js

@@ -487,7 +487,7 @@ let zTreeOprObj = {
         $("#divReqCommonSummaryMultiExcel")[0].style.display = "none";
         $("#divReqCommonSummaryPDF")[0].style.display = "none";
         $("#divReqCustomSelect")[0].style.display = "none";
-        $('#summaryTypeOptions')[0].selectedIndex = 4;
+        if ($('#summaryTypeOptions')[0]) $('#summaryTypeOptions')[0].selectedIndex = 4;
         zTreeOprObj.summaryBillsLv = [];
         me.requestPrjFolderCommon();
     },
@@ -499,7 +499,7 @@ let zTreeOprObj = {
         $("#divReqCommonSummaryMultiExcel")[0].style.display = "none";
         $("#divReqCommonSummaryPDF")[0].style.display = "none";
         $("#divReqCustomSelect")[0].style.display = "none";
-        $('#summaryTypeOptions')[0].selectedIndex = 4;
+        if ($('#summaryTypeOptions')[0]) $('#summaryTypeOptions')[0].selectedIndex = 4;
         zTreeOprObj.summaryBillsLv = [];
         me.requestPrjFolderCommon();
     },
@@ -511,7 +511,7 @@ let zTreeOprObj = {
         $("#divReqCommonSummaryMultiExcel")[0].style.display = "none";
         $("#divReqCommonSummaryPDF")[0].style.display = "none";
         $("#divReqCustomSelect")[0].style.display = "";
-        $('#summaryTypeOptions')[0].selectedIndex = 4;
+        if ($('#summaryTypeOptions')[0]) $('#summaryTypeOptions')[0].selectedIndex = 4;
         zTreeOprObj.summaryBillsLv = [];
         me.requestPrjFolderCommon();
     },
@@ -1378,7 +1378,7 @@ function activeBranchAfterPrjSelection(idStr) {
     $("#divReqCommonSummaryPDF")[0].style.display = "none";
     $("#divReqCustomSelect")[0].style.display = "none";
     $(`#${idStr}`)[0].style.display = "";
-    $('#summaryTypeOptions')[0].selectedIndex = 4;
+    if ($('#summaryTypeOptions')[0]) $('#summaryTypeOptions')[0].selectedIndex = 4;
     zTreeOprObj.summaryBillsLv = [];
 }