Parcourir la source

fix(controller): 多层直角弯

Zhou Jianjia il y a 3 ans
Parent
commit
71913bde8b
2 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 7 1
      pages/formula/anyangle.vue
  2. 2 2
      pages/formula/duochengzhijiao.vue

+ 7 - 1
pages/formula/anyangle.vue

@@ -119,7 +119,13 @@
                 this.rules.right.value = this.$util.acos(right)
                 this.rules.right.value = this.$util.acos(right)
                 this.rules.top.value = this.$util.acos(top)
                 this.rules.top.value = this.$util.acos(top)
 
 
-
+               /* if(this.rules.left.value > 90){
+                    this.rules.left.value = Math.abs(180 - this.rules.left.value)
+                }else if(this.rules.right.value > 90){
+                    this.rules.left.value = Math.abs(180 - this.rules.right.value)
+                }else if(this.rules.top.value > 90){
+                    this.rules.left.value = Math.abs(180 - this.rules.top.value)
+                }*/
                 this.rules.left.value = this.rules.left.value > 90 ? Math.abs(180 - this.rules.left.value) : this.rules.left.value;
                 this.rules.left.value = this.rules.left.value > 90 ? Math.abs(180 - this.rules.left.value) : this.rules.left.value;
                 this.rules.left.value = this.rules.right.value > 90 ? Math.abs(180 - this.rules.right.value) : this.rules.left.value;
                 this.rules.left.value = this.rules.right.value > 90 ? Math.abs(180 - this.rules.right.value) : this.rules.left.value;
                 this.rules.left.value = this.rules.top.value > 90 ? Math.abs(180 - this.rules.top.value) : this.rules.left.value;
                 this.rules.left.value = this.rules.top.value > 90 ? Math.abs(180 - this.rules.top.value) : this.rules.left.value;

+ 2 - 2
pages/formula/duochengzhijiao.vue

@@ -108,8 +108,8 @@
                     this.$u.toast('请输入角度');
                     this.$u.toast('请输入角度');
                     return
                     return
                 }
                 }
-                if( this.formData.angle &&  this.formData.angle > 90){
-                    this.$u.toast('角度不能大于90');
+                if( this.formData.angle &&  this.formData.angle >= 90){
+                    this.$u.toast('角度不能大于和等于90');
                     return
                     return
                 }
                 }
                 if(!this.formData.cengjianju){
                 if(!this.formData.cengjianju){