Ver Fonte

手术后天数

LIJU há 2 meses atrás
pai
commit
0f9c26ddc3
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/components/medical-advice/temperature/graphics.vue

+ 2 - 2
src/components/medical-advice/temperature/graphics.vue

@@ -68,7 +68,6 @@
           <td
             :colspan="index === 0 ? 8 : 6"
             :class="[index && 'redLineTd', !index && 'table-just']"
-            :style="index !== 0 ? { color: 'red' } : {}"
             v-for="(item, index) in inHospitalDays"
             :key="index + '|inHospitalDays'"
           >
@@ -79,10 +78,11 @@
           <td
             :colspan="index === 0 ? 8 : 6"
             :class="[index && 'redLineTd', !index && 'table-just']"
+            :style="index !== 0 ? { color: 'red' } : {}"
             v-for="(item, index) in surgeryDays"
             :key="index + '|surgeryDays'"
           >
-            {{ index === 0 ? "手术后天数" : item }}
+            {{ index === 0 ? "手术后天数" : (item ? item :0) }}
           </td>
         </tr>
         <tr>