1178232204@qq.com %!s(int64=3) %!d(string=hai) anos
pai
achega
659f23946c
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 3 3
      src/components/Preview.vue
  2. 1 1
      src/components/ScaleDetail.vue

+ 3 - 3
src/components/Preview.vue

@@ -28,7 +28,7 @@
         </div>
         <div class="personMsg personMsg2">
           <ul class="previewParts">
-            <li>
+            <li v-if="symptom.choose.length>0">
               <h4><i></i>主诉:</h4>
               <p>
                 <span
@@ -73,13 +73,13 @@
                 <p>结果为{{ scaleInfo[0].result }}</p>
               </div>
             </li>
-            <li v-if="tabType[moduleCP['other']] == 1">
+            <li v-if="tabType[moduleCP['other']] == 1 && others.text.length>0">
               <h4><i></i> 其他史:</h4>
               <p>
                 <span>{{ getDetailText(others.text, false).view }}</span>
               </p>
             </li>
-            <li v-if="tabType[moduleCP['suplement']] == 1">
+            <li v-if="tabType[moduleCP['suplement']] == 1  && addContent.text.length>0">
               <h4><i></i> 补充内容:</h4>
               <p>{{ getDetailText(addContent.text, false).view }}</p>
             </li>

+ 1 - 1
src/components/ScaleDetail.vue

@@ -59,7 +59,7 @@ export default {
         return "未达到目标在过去4周内,哮喘可能没有得到控制。可以制订一个哮喘管理计划,帮助改善哮喘控制。";
       } else if (this.score < 24 && this.score > 20) {
         return "接近目标在过去4周内,哮喘已得到良好控制,但还没有完全控制。";
-      } else if (this.score > 25) {
+      } else if (this.score >= 25) {
         return "在过去4周内,哮喘已得到完全控制。没有哮喘症状,生活也不受哮喘所限制。";
       }
     },