فهرست منبع

Merge branch 'qc_zn' into dev_zxc

zhangxc 5 سال پیش
والد
کامیت
5fd27f156d
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      src/html/qcScore.html
  2. 1 1
      src/js/qcScore.js

+ 2 - 1
src/html/qcScore.html

@@ -27,7 +27,7 @@
         <span class="level">质控等级:${level}</span>
         <span class="score">质控得分:${scoreRes}</span>
     </script>
-    <script type="text/html" id="contentTmpl">
+    <script type="text/html" id="tableTmpl">
         <div class="content-item" code="${title}">
             <h2 class="title">${title}</h2>
             <div class="container content-ht">
@@ -157,6 +157,7 @@
             <p class="warning"><span></span><span class="red">支持≥0的数字输入,最多保留小数点后1位~</span></p>
         </div>
     </script>
+
 </head>
 <body>
     <div class="patient-info" id="patientInfo"></div>

+ 1 - 1
src/js/qcScore.js

@@ -83,7 +83,7 @@ function initContent(data){
   let info=[];//formatData(obj['入院记录']);
   for(let k in obj){
     info=formatData(obj[k],k);
-    $("#contentTmpl").tmpl({title:k,info:info}).appendTo("#contentInfo");
+    $("#tableTmpl").tmpl({title:k,info:info}).appendTo("#contentInfo");
   }
   $(".content-item[code="+global_activeTab+"]").show();
   console.log(obj)