Przeglądaj źródła

其他史中血压类型子项未填值不显示

zhouna 5 lat temu
rodzic
commit
069aec61cb
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9 1
      src/store/actions/otherHistory.js

+ 9 - 1
src/store/actions/otherHistory.js

@@ -239,7 +239,15 @@ export function setNumberValue(state,action){
       if(it.value){     //至少有一个子值才黑显
         hasValue = true;
       }
-      return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
+      if(it.tagType===8){       //维护时的连接词无value
+        return it.name;
+      }else{
+        //组合中未填值的子标签预览中不显示
+        if(!it.value){
+          return '';
+        }
+        return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
+      }
     });
     res.saveText[labelInx] = hasValue?sub.join(''):'';
   }