Przeglądaj źródła

三测单的手术后天数 当天为0的需求

LIJU 2 miesięcy temu
rodzic
commit
99cc6835b6

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

@@ -84,7 +84,7 @@
             v-for="(item, index) in surgeryDays"
             :key="index + '|surgeryDays'"
           >
-            {{ index === 0 ? "手术后天数" : (item ? item : (info.oprtStatus && (info.oprtStatus ==='有手术') ? 0 : '')) }}
+            {{ index === 0 ? "手术后天数" : ((item === 0 || item) ? item : '') }}
           </td>
         </tr>
         <tr>
@@ -1135,7 +1135,7 @@ export default {
       var yAxis1 = d3.axisLeft().scale(yScale1);
       var yAxis2 = d3.axisLeft().scale(yScale2);
 
-      // 添加SVG元素并与x轴进行“绑定”
+      // 添加SVG元素并与x轴进行"绑定"
       main
         .append("g")
         .attr("class", "axis")
@@ -1145,7 +1145,7 @@ export default {
         )
         .call(xAxis);
 
-      // 添加SVG元素并与y轴进行“绑定”
+      // 添加SVG元素并与y轴进行"绑定"
       main.append("g").attr("class", "axis").call(yAxis);
       main.append("g").attr("class", "axis").call(yAxis1);
       main.append("g").attr("class", "axis").call(yAxis2);