Browse Source

feat(view): 小数保留问题

xiansin 3 years ago
parent
commit
90a16bd725
4 changed files with 4 additions and 4 deletions
  1. 1 1
      pages/formula/angle.vue
  2. 1 1
      pages/formula/anyangle.vue
  3. 1 1
      pages/formula/normal.vue
  4. 1 1
      pages/formula/slice.vue

+ 1 - 1
pages/formula/angle.vue

@@ -86,7 +86,7 @@
             },
             },
             roundRules(){
             roundRules(){
                 for (const itemKey in this.rules) {
                 for (const itemKey in this.rules) {
-                    //this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
+                    this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
                 }
                 }
             },
             },
             initRules(){
             initRules(){

+ 1 - 1
pages/formula/anyangle.vue

@@ -145,7 +145,7 @@
             },
             },
             roundRules(){
             roundRules(){
                 for (const itemKey in this.rules) {
                 for (const itemKey in this.rules) {
-                    //this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
+                    this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
                 }
                 }
             },
             },
             initRules(){
             initRules(){

+ 1 - 1
pages/formula/normal.vue

@@ -139,7 +139,7 @@
             },
             },
             roundRules(){
             roundRules(){
                 for (const itemKey in this.rules) {
                 for (const itemKey in this.rules) {
-                    //this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
+                    this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
                 }
                 }
             },
             },
             initRules(){
             initRules(){

+ 1 - 1
pages/formula/slice.vue

@@ -91,7 +91,7 @@
             },
             },
             roundRules(){
             roundRules(){
                 for (const itemKey in this.rules) {
                 for (const itemKey in this.rules) {
-                    //this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
+                    this.rules[itemKey].value = this.$util.round(this.rules[itemKey].value,2);
                 }
                 }
             },
             },
             initRules(){
             initRules(){