TonyKang %!s(int64=3) %!d(string=hai) anos
pai
achega
cb68e111ba
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  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 = [];
 }