소스 검색

保留小数位

huangjn 1 년 전
부모
커밋
211565f36a
4개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 2
      src/config/index.json
  2. 1 1
      src/views/formula/edit.vue
  3. 1 1
      src/views/formula/edit1.vue
  4. 1 1
      src/views/formula/editnew.vue

+ 1 - 2
src/config/index.json

@@ -1,6 +1,5 @@
 {
-  "target1": "http://39.108.216.210:8090",
-  "target": "http://192.168.0.102:8090",
+  "target": "http://192.168.1.228:8090",
   "dev": {
     "port": 1888
   }

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

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

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

@@ -1541,7 +1541,7 @@ export default {
         }
       }
 
-    if(detail&&detail.scale>=0){
+    if(detail&&detail.scale!=null&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }else{

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

@@ -1539,7 +1539,7 @@ export default {
         }
       }
 
-      if(detail&&detail.scale>=0){
+      if (detail&&detail.scale!=null&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }else{