소스 검색

问题修改

1178232204@qq.com 3 년 전
부모
커밋
b9ca9925ec
3개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 0
      src/css/cdssHorizontal.less
  2. 5 5
      src/js/cdss.js
  3. 1 1
      src/js/cdssHorizontal.js

+ 1 - 0
src/css/cdssHorizontal.less

@@ -873,6 +873,7 @@
   overflow: hidden;
   background: #F6F6F6 ;
   margin-bottom: 5px;
+  position: relative;
   .moduleTitle{
     color: #1ECEBD;
   }

+ 5 - 5
src/js/cdss.js

@@ -365,7 +365,7 @@ function renderpushByMayDisease(name, i, e) {
       let lisPush = result.lis || []
       let pacsPush = result.pacs || []
       let scalePush = result.scale || []
-      let disPush = result.dis['大数据推送诊断'] || []
+      let disPush = result.dis['鉴别诊断'] || []
       let treatPush = result.treat || []
       let medicinesPush = result.medicines || []
       let operationsPush = result.operations || []
@@ -396,7 +396,7 @@ function renderpushByMayDisease(name, i, e) {
         moreInfo()
         bindSlide();
         empty()
-        if ($(".maydiagnose .moduleCenter").children('div').length == 1) {
+        if ($(e.target).parents('.box').find(".moduleCenter").children('div').length == 1 && !$(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)
@@ -458,7 +458,7 @@ function renderpushByHasDisease(name, i, e) {
         moreInfo()
         bindSlide();
         empty()
-        if ($(".hasdiagnose .moduleCenter").children('div').length == 1) {
+        if ($(e.target).parents('.box').find(".moduleCenter").children('div').length == 1 && !$(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)
@@ -1046,7 +1046,6 @@ function renderHasDisPush(list) {
   let num, state
   for (let i = 0; i < hasdiagnoseList.length; i++) {
     const item = hasdiagnoseList[i];
-    console.log(item );
     if (item.code == 'hasantidias') {
       num = item.number
       state = item.status
@@ -1125,6 +1124,7 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
     } else if (item.code == 'hasoperation') {
       operationstate = item.status
     } else if (item.code == 'hasnurse') {
+      nursestate = item.status
     }
   }
   for (let i = 0; i < treatPush.length; i++) {
@@ -1133,7 +1133,6 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
       isShow = true
     }
   }
-  console.log(medicinestate, 111);
   $(".hasdiagnose .box[data-index=" + indexNow + "]").find(".moduleCenter").append("<div class='centerBox'></div>")
   let str = `<ul>
     ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
@@ -1226,6 +1225,7 @@ function renderMayNursePush(list) {
   }
 }
 function renderHasNursePush(list) {
+
   if (list.length > 0) {
     moduleNum++
     let { shortStr, longStr } = renderItemWrapper(list, 10)

+ 1 - 1
src/js/cdssHorizontal.js

@@ -367,7 +367,7 @@ function renderPushData() {
       renderDiag(diagPush)
       renderDiagList(diagList)
       renderAffListList(AffList)
-      if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush || nursePush.length > 0) {
+      if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush) {
         let str = `<img class="treatIcon" src = ${titleConfigH["treat"].icon} /><span>${titleConfigH["treat"].name}</span>`
         $(".rightBoxTitle").append(str)
         renderDisName()