Prechádzať zdrojové kódy

公式配置保留小数回显修改

duy 1 rok pred
rodič
commit
580de6f807
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 1 1
      src/views/formula/edit.vue
  2. 2 2
      src/views/formula/edit1.vue

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

@@ -1438,7 +1438,7 @@ export default {
         }
       }
 
-      if(detail&&detail.scale > -1){
+      if(detail&&detail.scale ){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }

+ 2 - 2
src/views/formula/edit1.vue

@@ -1501,7 +1501,7 @@ export default {
           dev:deviationRangeText
         }).then((result)=>{
           let msg='修改成功';
-          if(result.data.msg=='公式已删除'){this.formulaid='';msg=result.data.msg;};
+          if(result.data.msg=='公式已删除'){this.formulaid='';msg=result.data.msg;}
           this.formulaStringToArray();
           this.$message({
             type: "success",
@@ -1567,7 +1567,7 @@ export default {
         }
       }
 
-      if(detail&&detail.scale > -1){
+      if(detail&&detail.scale ){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }