1178232204@qq.com 3 سال پیش
والد
کامیت
55e2e302f7
3فایلهای تغییر یافته به همراه34 افزوده شده و 7 حذف شده
  1. BIN
      src/images/d3.png
  2. 32 4
      src/js/cdss.js
  3. 2 3
      src/js/cdssHorizontal.js

BIN
src/images/d3.png


+ 32 - 4
src/js/cdss.js

@@ -25,6 +25,8 @@ require('./../images/t2.png').replace(/^undefined/g, '')
 require('./../images/t3.png').replace(/^undefined/g, '')
 require('./../images/go.png').replace(/^undefined/g, '')
 require('./../images/g1.png').replace(/^undefined/g, '')
+
+require('./../images/choice-n.png').replace(/^undefined/g, '')
 require('./../images/toast-1.png').replace(/^undefined/g, '')
 require('./../images/toast-2.png').replace(/^undefined/g, '')
 require('./../images/toast-3.png').replace(/^undefined/g, '')
@@ -43,6 +45,7 @@ let ups = require('./../images/d2.png').replace(/^undefined/g, '')
 let more = require('./../images/more.png').replace(/^undefined/g, '')
 let up = require('./../images/icon-up.png').replace(/^undefined/g, '')
 let go = require('./../images/g1.png').replace(/^undefined/g, '')
+let down2 = require('./../images/d3.png').replace(/^undefined/g, '')
 let maydiagnoseList = [], hasdiagnoseList = [];
 let maydiagnoseType = false, hasdiagnoseType = false;
 
@@ -358,7 +361,7 @@ function renderPushData() {
     empty();  //判断是否显示空状态
   })
 }
-function renderpushByMayDisease(name, i) {
+function renderpushByMayDisease(name, i,e) {
   return pushByDisease(name, i).then(res => {
     $(".loading").hide();
     hasCompleteTnterface++
@@ -383,6 +386,8 @@ function renderpushByMayDisease(name, i) {
       }
       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('toast1', '', 3000, '.maydiagnose', i);
+        $(e.target).parents('.box').find(".box-img").attr('src', down2)
+        $(e.target).parents('.box').find(".box-img").addClass('noData')
       } else if (maydiagnoseType) {
         $.toast('toast2', '', 3000, '.maydiagnose', i);
       } else {
@@ -410,7 +415,7 @@ function renderpushByMayDisease(name, i) {
     }
   })
 }
-function renderpushByHasDisease(name, i) {
+function renderpushByHasDisease(name, i,e) {
   return pushByDisease(name, i).then(res => {
     $(".loading").hide();
     hasCompleteTnterface++
@@ -435,6 +440,8 @@ function renderpushByHasDisease(name, i) {
       }
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
         $.toast('toast1', '', 3000, '.hasdiagnose', i);
+        $(e.target).parents('.box').find(".box-img").attr('src', down2)
+        $(e.target).parents('.box').find(".box-img").addClass('noData')
       } else if (hasdiagnoseType) {
         $.toast('toast2', '', 3000, '.hasdiagnose', i);
       } else {
@@ -703,17 +710,28 @@ function renderDiagList(list, showNum) {
       const i = $(this).attr('data-index');
       indexNow = i
       const showList = $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display")
+      if($(e.target).parents('.box').find(".box-img").hasClass('noData')){
+        $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
+        $.toast('toast1', '', 3000, '.maydiagnose', i);
+        setTimeout(function () {
+          $(".maydiagnose .box").find(".moduleCenter").css("display", "none")
+        }, 200);
+        
+        return
+      }
       if (showList == "none" || !showList) {
         $(".loading").show();
         $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
         $(".maydiagnose .box").find(".moduleCenter").css("display", "none")
         $(".maydiagnose .box").find(".box-img").attr('src', down)
+        $(".maydiagnose .box").find(".noData").attr('src', down2)
         $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
         $(e.target).parents('.box').find(".box-img").attr('src', ups)
-        renderpushByMayDisease(name, i)
+        renderpushByMayDisease(name, i,e)
       } else {
         $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
         $(e.target).parents('.box').find(".box-img").attr('src', down)
+        $(".maydiagnose .box").find(".noData").attr('src', down2)
       }
     });
   }
@@ -741,17 +759,27 @@ function renderAffListList(list, showNum) {
       const i = $(this).attr('data-index');
       indexNow = i
       const showList = $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display")
+      if($(e.target).parents('.box').find(".box-img").hasClass('noData')){
+        $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
+        $.toast('toast1', '', 3000, '.hasdiagnose', i);
+        setTimeout(function () {
+          $(".hasdiagnose .box").find(".moduleCenter").css("display", "none")
+        }, 200);
+        return
+      }
       if (showList == "none" || !showList) {
         $(".loading").show();
         $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
         $(".hasdiagnose .box").find(".moduleCenter").css("display", "none")
         $(".hasdiagnose .box").find(".box-img").attr('src', down)
+        $(".hasdiagnose .box").find(".noData").attr('src', down2)
         $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
         $(e.target).parents('.box').find(".box-img").attr('src', ups)
-        renderpushByHasDisease(name, i)
+        renderpushByHasDisease(name, i,e)
       } else {
         $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
         $(e.target).parents('.box').find(".box-img").attr('src', down)
+        $(".hasdiagnose .box").find(".noData").attr('src', down2)
       }
     });
   }

+ 2 - 3
src/js/cdssHorizontal.js

@@ -433,7 +433,6 @@ function renderpushByMayDisease(name, i, inx) {
         }
       }
       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) {
-        console.log(123);
         $.toast('toast3', '', 3000, '.maydiagnose', i);
         $(".maydiagnose .item").css("display", "none")
       } else if (maydiagnoseType) {
@@ -849,7 +848,7 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
   renderMayOperationsPush(operationsPush, inx)
   renderMayNursePush(nursePush, inx)
   $(".maydiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
-    var i = $(this).index();
+    var i = $(this).attr('data-index');
     if ($(this).hasClass('actives')) {
       $(this).removeClass('actives');
       $(".maydiagnose .item[data-index=" + inx + "] .checkBox[data-index=" + i + "]").removeClass('onshow');
@@ -950,7 +949,6 @@ function renderMayMedicinesPush(list, inx) {
   if (list.length > 0) {
     moduleNum++
     let { shortStr, longStr } = renderItemWrapper(list, 10)
-    console.log($(".moduleItem .item[data-index=" + inx + "] .maymedicine"), 112);
     $(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(shortStr)
     $(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
   }
@@ -964,6 +962,7 @@ function renderHasMedicinesPush(list, inx) {
   }
 }
 function renderMayOperationsPush(list, inx) {
+  console.log(list,112);
   if (list.length > 0) {
     moduleNum++
     let { shortStr, longStr } = renderItemWrapper(list, 10)