瀏覽代碼

开单合理性显示bug

zhouna 4 年之前
父節點
當前提交
574bd2ab1d
共有 2 個文件被更改,包括 33 次插入29 次删除
  1. 23 21
      src/css/cdssHorizontal.less
  2. 10 8
      src/js/cdssHorizontal.js

+ 23 - 21
src/css/cdssHorizontal.less

@@ -185,15 +185,34 @@
     border-bottom: 1px solid #3B9ED0;
     cursor: pointer;
 }
-.moduleItem.tips{
+.tips{
+    background: #FFE8DD;
+}
+.moduleItem.crivalue,.moduleItem.rationali,.moduleItem.highrisk,.moduleItem.otherremind{
     max-height: 81px;
     overflow-y: hidden;
     // background: #FFE8DD;
     position: relative;
+    .moduleTitle{
+        color: #FF7836;
+    }
+    .moduleBox{
+        padding: 0 0 0 80px;
+        position: relative;
+    }
+    .moduleBoxName{
+        position: absolute;
+        left: 0;
+        font-size: 12px;
+        color:#FF7836;
+        display: inline-block;
+        border: 1px solid #FF7836;
+        line-height: 18px;
+        top: 3px;
+        padding: 0 7px;
+        border-radius: 9px;
+    }
 }
-.moduleItem.tips .moduleTitle{
-   color: #FF7836;
-} 
 .showMore,.showLess{
     display: inline-block;
     cursor: pointer;
@@ -233,23 +252,6 @@
     text-align: right;
     font-weight: 600;
 }
-.tips .moduleBox{
-    padding: 0 0 0 80px;
-    position: relative;
-}
-.tips .moduleBoxName{
-    position: absolute;
-    left: 0;
-    font-size: 12px;
-    color:#fff;
-    display: inline-block;
-    border: 1px solid #FF7836;
-    line-height: 18px;
-    top: 3px;
-    padding: 0 7px;
-    border-radius: 3px;
-    background-color: #FF7836;
-}
 .diag .moduleBox{
     padding: 0 0 0 60px;
     position: relative;

+ 10 - 8
src/js/cdssHorizontal.js

@@ -485,7 +485,9 @@ function renderwriteStandardPage(list){
     $('.moduleItem.casewriting').css("display","block")
   }
 }
+function computeTipsHeight(){
 
+}
 function renderPushWarning(){
   return getPusgWarning().then(res =>{
     hasCompleteTnterface++
@@ -497,12 +499,12 @@ function renderPushWarning(){
       let noteList = result.noteList || []  //检查内容注意事项
       let dubugStr = result.dubugStr || []  //注意调试信息
       let otherList = result.otherList || []  //其他提醒
-      $('.moduleItem.tips .moduleItemTitBox').append(titleStr('warning'))
-      renderBillingPush(billMsgList,'开单合理性')
-      renderBillingPush(highRiskList,'高风险提示')
-      renderBillingPush(criticalValList,'危急值提醒')
+      $('.moduleItem.rationali .moduleItemTitBox').append(titleStr('warning'))
+      renderBillingPush(billMsgList,'开单合理性','rationali')
+      renderBillingPush(highRiskList,'高风险提示','highrisk')
+      renderBillingPush(criticalValList,'危急值提醒','crivalue')
       renderBillingPush(noteList,'检查注意事项')
-      renderBillingPush(otherList,'其他提醒')
+      renderBillingPush(otherList,'其他提醒','otherremind')
       moreInfo()
       if($(".moduleItem.tips")){
         let tipsHei = $(".moduleItem.tips")[0].scrollHeight
@@ -525,7 +527,7 @@ function renderPushWarning(){
     
   })
 }
-function renderBillingPush(list,name){
+function renderBillingPush(list,name,code){
   if(list.length === 0){
     return
   }
@@ -538,8 +540,8 @@ function renderBillingPush(list,name){
         ${titleStr}
         ${str}
       </div>`
-  $(".tips").append(boxStr)
-  $('.moduleItem.tips').css("display","block")
+  $("."+code).append(boxStr)
+  $('.moduleItem.'+code).addClass("tips").css("display","block")
 }
 function renderLongStr(name,longStr,location){
   if(!longStr){