hurugang 4 лет назад
Родитель
Сommit
cf033da1f0

+ 16 - 5
src/main/resources/static/js/mz/clinic.js

@@ -429,7 +429,9 @@ function contentMethod() {
             '                </div>' +
             '            </div>';
         $("#smartAssistPopoverContent").html(html);
-        fitPatientHisData();
+       if( $("#"+popoverId).hasClass("in")){
+           fitPatientHisData();
+       }
     }, 100);
 
     // setTimeout(function () {
@@ -1676,7 +1678,9 @@ function initRecommendList() {
             $("#webuiPopover1 div.webui-popover-content").append(html);
             $('#paramsType').selectpicker('refresh');
             $("#paramsType").parent().css("width", "140px").css("height", "34px");
-            loadSymptom();
+            if( $("#webuiPopover1").hasClass("in")){
+                loadSymptom();
+            }
         }
     });
 
@@ -1691,7 +1695,9 @@ function initRecommendList() {
                 html += "<div style='width: 100%;height:210px;overflow-y: auto;padding: 0px 20px;' id='healthCheckupContentHtml'>";
                 html += "</div>";
                 $("#webuiPopover2 div.webui-popover-content").append(html);
-                loadHealthCheckup();
+                if( $("#webuiPopover2").hasClass("in")){
+                    loadHealthCheckup();
+                }
             }
             //loadSymptom();
         } else {
@@ -1703,7 +1709,9 @@ function initRecommendList() {
                 html += "<div style='width: 100%;height:210px;overflow-y: auto;padding: 0px 20px;' id='healthCheckupContentHtml'>";
                 html += "</div>";
                 $("#webuiPopover2 div.webui-popover-content").append(html);
-                loadHealthCheckup();
+                if( $("#webuiPopover2").hasClass("in")){
+                    loadHealthCheckup();
+                }
             }
         }
         return false;
@@ -1724,7 +1732,7 @@ function initRecommendList() {
             html += "<div style='width: 100%;height:210px;overflow-y: auto;padding: 0px 20px;' id='diagnoseContentHtml'>";
             html += "</div>";
             $("#webuiPopover3 div.webui-popover-content").append(html);
-            $("#paramsDiagnose").on('input propertychange', loadDiagnose($("#paramsDiagnose").val()));
+            //$("#paramsDiagnose").on('input propertychange', loadDiagnose($("#paramsDiagnose").val()));
             loadDiagnose("");
         }
     });
@@ -1924,6 +1932,9 @@ function loadHealthCheckup() {
  * @param value
  */
 function loadDiagnose(value) {
+    if(!$("#webuiPopover3").hasClass("in")){
+        return;
+    }
     $.ajax({
         type: "GET",
         url: '/thmz/getTCommonParamsByParamsType?paramsType=4&commonParams=' + value,

+ 0 - 1
src/main/resources/templates/mz/clinic.html

@@ -4,7 +4,6 @@
 <link rel="stylesheet" href="/thmz/css/custom.min.css">
 <link rel="stylesheet" href="/thmz/css/jquery.webui-popover.min.css">
 <link rel="stylesheet" href="/thmz/css/registration.css">
-<script src="/thmz/js/dependent/bootstrap.min.js"></script>
 <script src="/thmz/js/dependent/bootstrap-select.js"></script>
 <script src="/thmz/js/dependent/daterangepicker.js"></script>
 <script src="/thmz/js/dependent/icheck.js"></script>