Browse Source

处理速度为0时显示为--的问题

liling 3 weeks ago
parent
commit
a23b3eb7f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pages/components/In03.vue

+ 1 - 1
src/pages/components/In03.vue

@@ -600,7 +600,7 @@ export default {
                 let line = markerOpt["userData"].split("|")[1];
                 if(lineDataInfo[line]==null) continue;
                 if(datatype=="tmp") {
-                    markerOpt["text"] = line+"# 定型温度:"+ (lineDataInfo[line].dxTmp||"--")+"   烫光温度:"+ (lineDataInfo[line].tgTmp||"--")+"  速度:"+ (lineDataInfo[line].speed||"--");
+                    markerOpt["text"] = line+"# 定型温度:"+ (lineDataInfo[line].dxTmp==null?"--":lineDataInfo[line].dxTmp)+"   烫光温度:"+ (lineDataInfo[line].tgTmp==null?"--":lineDataInfo[line].tgTmp)+"  速度:"+ (lineDataInfo[line].speed==null?"--":lineDataInfo[line].speed);
                 }
                 if(datatype=="order") {
                     markerOpt["text"] = line+"# 订单号:"+ (lineDataInfo[line].order||"--")+"  花色:"+ (lineDataInfo[line].color||"--");