Browse Source

危急值记录-多条,样式待改

zhouna 5 years ago
parent
commit
18e403f370
3 changed files with 16 additions and 5 deletions
  1. 10 1
      src/css/qcScore.less
  2. 2 2
      src/html/qcScore.html
  3. 4 2
      src/js/qcScore.js

+ 10 - 1
src/css/qcScore.less

@@ -77,10 +77,19 @@
     width:70%;
     height: 100%;
     position: relative;
+    /*overflow-y: auto;*/
   }
   .content-item{
     display: none;
     height: 100%;
+
+    /**********危急值记录*************/
+    &.danger-record{
+      height:auto;
+      .title{
+        /*position: unset;*/
+      }
+    }
     .title{
       position: absolute;
       top: 0;
@@ -355,4 +364,4 @@
   .cont{
     width: 100%;
   }
-}
+}

+ 2 - 2
src/html/qcScore.html

@@ -1302,9 +1302,9 @@
 
     </script>
     <script type="text/html" id="dangerRecore">
-        <div class="content-item" code="${title}">
+        <div class="content-item danger-record" code="${title}">
             <h2 class="title">${title}</h2>
-            <div class="container content-ht">
+            <div class="container">
                 <div class="patient-info">
                     <span>姓名:${本人姓名}</span>
                     <span>性别:${性别}</span>

+ 4 - 2
src/js/qcScore.js

@@ -84,8 +84,10 @@ function initContent(data){
     "危急值记录":"#dangerRecore",
   };
   for(let k in obj){
-    info=formatInfoData(k,obj[k][0]);
-    nameMap[k]&&$(nameMap[k]).tmpl(info).appendTo("#contentInfo");
+    for(let i in obj[k]){console.log(i,k)
+      info=formatInfoData(k,obj[k][i]);
+      nameMap[k]&&$(nameMap[k]).tmpl(info).appendTo("#contentInfo");
+    }
   }
   if(obj["病案首页"][0]["出院诊断"]){
     const diag = JSON.parse(obj["病案首页"][0]["出院诊断"]);