1178232204@qq.com преди 3 години
родител
ревизия
de72166838
променени са 2 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 2
      src/js/cdss.js
  2. 0 1
      src/js/cdssHorizontal.js

+ 4 - 2
src/js/cdss.js

@@ -396,8 +396,10 @@ function renderpushByMayDisease(name, i, e) {
         moreInfo()
         bindSlide();
         empty()
-        if ($(e.target).parents('.box').find(".moduleCenter").children('div').length == 1 && !$(e.target).parents('.box').find(".centerBox").css("display")) {
+        console.log($(e.target).parents('.box').find(".moduleCenter").children('div').length);
+        if ($(e.target).parents('.box').find(".moduleCenter").children('div').length == 1 && ($(e.target).parents('.box').find(".centerBox").css("display") == "none" || !$(e.target).parents('.box').find(".centerBox").css("display"))) {
           $.toast('toast1', '', 3000, '.maydiagnose', i);
+
           $(".maydiagnose .box-title").addClass("ellipsis")
           $(e.target).parents('.box').find(".box-img").attr('src', down2)
           $(e.target).parents('.box').find(".box-img").removeClass('box-img').addClass('noData')
@@ -458,7 +460,7 @@ function renderpushByHasDisease(name, i, e) {
         moreInfo()
         bindSlide();
         empty()
-        if ($(e.target).parents('.box').find(".moduleCenter").children('div').length == 1 && !$(e.target).parents('.box').find(".centerBox").css("display")) {
+        if ($(e.target).parents('.box').find(".moduleCenter").children('div').length == 1 && ($(e.target).parents('.box').find(".centerBox").css("display") == "none" || !$(e.target).parents('.box').find(".centerBox").css("display"))) {
           $.toast('toast1', '', 3000, '.hasdiagnose', i);
           $(".hasdiagnose .box-title").addClass("ellipsis")
           $(e.target).parents('.box').find(".box-img").attr('src', down2)

+ 0 - 1
src/js/cdssHorizontal.js

@@ -428,7 +428,6 @@ function renderpushByMayDisease(name, i, inx) {
           isShow = true
         }
       }
-      console.log($(".maydiagnose .item div").length);
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
         $.toast('toast3', '', 3000, '.maydiagnose', i);
         $(".maydiagnose .item").css("display", "none")