소스 검색

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 = [];
 }