ソースを参照

添加静态知识

zhangxc 4 年 前
コミット
3409825ffe

+ 15 - 1
src/css/cdss.less

@@ -201,7 +201,6 @@ body{
     display: inline-block;
 }
 .moduleItem{
-    min-height: 80px;
     border: 1px solid #EAEDF1;
     margin: 0 0 20px 0;
 }
@@ -326,4 +325,19 @@ body{
     /* right: 30px; */
     left: 0; 
     overflow: auto;
+}
+.warning{
+    background: #FF8042;
+    color: #fff;
+    padding: 10px 40px;
+}
+.warningTitImg{
+    width: 24px;
+    position: absolute;
+    left: -28px;
+    top: -3px;
+}
+.warningTitle{
+    position: relative;
+    margin-right: 15px;
 }

+ 1 - 1
src/css/staticSearch.css

@@ -1,4 +1,4 @@
-.container {
+.staticContainer {
     width: 80%;
     background: #fff;
     margin: 0 auto;

+ 1 - 1
src/html/disclaimer.html

@@ -20,7 +20,7 @@
       font-size: 14px;
       overflow-y: auto;
       font-family: '微软雅黑', '宋体';
-      background: #dde2ea;
+      background: #fff;
       height: 100%;
       color: #505050;
       line-height: 28px;

+ 1 - 1
src/html/staticSearch.html

@@ -37,7 +37,7 @@
 </head>
 
 <body>
-    <div class="container">
+    <div class="staticContainer container">
         <div class="searchKnowledge">
             <div class="staticSearchT">
                 <div class="ipt">

+ 1 - 0
src/html/version.html

@@ -35,6 +35,7 @@
       width: 80%;
       background: #fff;
       margin: 0 auto;
+      height: auto;
       padding: 0 30px 40px;
     }
   </style>

+ 13 - 10
src/js/cdss.js

@@ -13,6 +13,7 @@ let infoImgOn = require('./../images/icon_info_on.png')
 let iconArrowUp = require('./../images/icon_arrow_up.png')
 let iconArrowDown = require('./../images/icon_arrow_down.png')
 let iconMark = require('./../images/icon_mark.png')
+let warnImg = require('./../images/icon_warning.png')
 
 
 const $ = require("jquery");
@@ -166,9 +167,9 @@ $(document).on('click',".allDis .right,.allDis .secDis",function(){
 
 
 function moreInfo() {
-  $('.moreInfo').click(function(){
-    const name = $(this).attr('data-name')
-    const type = $(this).attr('data-type')
+  $('.infoImg').off("click").click(function(){
+    const name = $(this).parent().attr('data-name')
+    const type = $(this).parent().attr('data-type')
     openNewWin(`information.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
   })
 }
@@ -293,6 +294,7 @@ function renderPushWarning(){
       renderBillingPush(highRiskList,'高风险提示')
       renderBillingPush(criticalValList,'危急值提醒')
       renderBillingPush(noteList,'检查内容注意事项')
+      moreInfo()
       // renderBillingPush(dubugStr,'注意调试信息')
      
     }
@@ -333,13 +335,14 @@ function renderDiag(diagPush){
   let warnNumber =  $('.moduleItem.warning').attr("data-num") || 5
   
   $('.moduleItem.diag').append(titleStr("diagPush"))
+  // let warningDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
   // let firstDiagPush =  [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
   // let identifyDiagPush = diagPush["鉴别诊断"] ||  [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
   renderDiagItem(possibleDiagPush,"可能诊断",number)
   renderDiagItem(firstDiagPush,"初步诊断",number)
   renderDiagItem(identifyDiagPush,"鉴别诊断",number)
-  // renderWarningDiag(warningDiagPush,"警惕",warnNumber)
-
+  renderWarningDiag(warningDiagPush,"警惕",warnNumber)
+  moreInfo()
 }
 
 function renderDiagItem(list,name,number){
@@ -360,12 +363,12 @@ function renderWarningDiag(list,name,number){
   if(list.length > 0 &&  $(".moduleItem.warning").length > 0){
     moduleNum++
     $('.moduleItem.warning').append()
-    let str = ``
+    let str = `<span class="warningTitle"><img class="warningTitImg" src=${warnImg}>警惕</span>`
     for(let i = 0; i < list.length; i++){
       str+= renderPushItem(list[i].name,1,true)
     }
     $('.moduleItem.warning').append(str)
-    $('.moduleItem.lis').css("display","block")
+    $('.moduleItem.warning').css("display","block")
   }
 }
 
@@ -464,7 +467,7 @@ function renderItemWrapper(list,showNum,type,hasInfo){
 
 function renderPushItem(name,type,hasInfo){
   if(hasInfo){
-    str= `<span class="pushItemBox"><span class="pushItemName">${name}</span><img class="infoImg" src="${infoImg}"></span>`
+    str= `<span class="pushItemBox" data-name="${name}" data-type="${type}"><span class="pushItemName">${name}</span><img class="infoImg" src="${infoImg}"></span>`
   }else{
     str= `<span class="pushItemBox">${name}</span>`
   }
@@ -493,7 +496,7 @@ function bindSlide(){
 function renderModuleWrapper(moduleList){
   let moduleStr = ''
   for(let i = 0; i < moduleList.length; i++){
-    // if(moduleList[i].status !='0'){
+    if(moduleList[i].status !='0'){
       if(moduleList[i].code == 'treat'){
         moduleStr += `<div class="moduleItem medicine"  data-num="${moduleList[i].number}" style="display:none"></div>`
         moduleStr += `<div class="moduleItem operation"  data-num="${moduleList[i].number}" style="display:none"></div>`
@@ -503,7 +506,7 @@ function renderModuleWrapper(moduleList){
       }else{
         moduleStr += `<div class="moduleItem ${moduleList[i].code }"  data-num="${moduleList[i].number}" style="display:none"></div>`
       }
-    // }
+    }
    
   }
   $(".recommendWrap").append(moduleStr)