1178232204@qq.com 3 роки тому
батько
коміт
d46eab3142
2 змінених файлів з 8 додано та 1 видалено
  1. 7 0
      src/js/cdss.js
  2. 1 1
      src/js/cdssHorizontal.js

+ 7 - 0
src/js/cdss.js

@@ -395,6 +395,7 @@ function renderpushByMayDisease(name, i, e) {
         bindOpenInfo()
         moreInfo()
         bindSlide();
+        empty()
       }
       // renderMaySymptomPush(symptomPush)
       // renderMayVitalPush(vitalPush)
@@ -449,6 +450,7 @@ function renderpushByHasDisease(name, i, e) {
         bindOpenInfo()
         moreInfo()
         bindSlide();
+        empty()
       }
 
     }
@@ -1370,6 +1372,7 @@ function renderTab(tabList) {
   let showModuleName = $(".tabList .tab").eq(tabNum).attr("data-name")
   getModuleShow(moduleConfig[showModuleName])
   bindTabClick()
+  
 }
 
 function titleStr(type) {
@@ -1385,6 +1388,7 @@ function titleStr2(name) {
 
 function bindTabClick() {
   $(".tabList .tab").off("click").on("click", function () {
+    
     $(".activeTab").removeClass("activeTab")
     $(this).addClass("activeTab")
     const moduleName = $(this).attr("data-name")
@@ -1396,6 +1400,7 @@ function bindTabClick() {
 
       // $(".contentWrapper").css("overflowY","auto")
     }
+    empty()
   })
 }
 
@@ -1440,6 +1445,8 @@ function empty() {
     setTimeout(function () {
       const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
       const configShownBox = $('.recommendWrap .moduleItem:visible').length;
+      console.log(configShownBox,111);
+      console.log(configShownBox,222);
       if (configShownBox === 0 && emptyShownBox === 0) {       //有配置但没数据
         $('.empty-box').hide();
         $('.recommendBox .empty-null').show();

+ 1 - 1
src/js/cdssHorizontal.js

@@ -584,7 +584,7 @@ function renderAffListList(list) {
       $(this).parent().parent().next().attr('data-i', i)
       renderpushByHasDisease(name, i, 2)
     } else {
-      $(this).find(".item").css("display", "none")
+      $(".hasdiagnose .item").css("display", "none")
     }
   });
 }