gangyj před 2 roky
rodič
revize
cb906b96ae
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/views/formula/edit.vue

+ 4 - 1
src/views/formula/edit.vue

@@ -1178,7 +1178,10 @@ export default {
         this.resultFormula[0].children = formula.resultFormula[0].children;
 
         //允许偏差值范围
-        this.deviationRange.datas = JSON.parse(JSON.parse(detail.map).deviationRangeJson);
+        let mapObj = JSON.parse(detail.map);
+        if(mapObj.deviationRangeJson){
+          this.deviationRange.datas = JSON.parse(mapObj.deviationRangeJson);
+        }
       }
 
       if(detail.scale > -1){