Browse Source

柱子长度计算bug修复

lloyd 5 months ago
parent
commit
cca6501694
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/components/moduleView/SimplifiedView.vue

+ 1 - 3
src/components/moduleView/SimplifiedView.vue

@@ -62,11 +62,9 @@ export default {
62 62
     },
63 63
     resetBarWidth() {
64 64
       this.originalData.width = (this.originalData.prodVal / this.barMaxWidthCompareVal * this.barMaxWidth).toFixed(2)
65
-      console.log(this.originalData);
66 65
       this.simpleItems.forEach(item => {
67
-        item.width = (item.prodVal / this.barMaxWidthCompareVal / this.barMaxWidth).toFixed(2)
66
+        item.width = (item.prodVal / this.barMaxWidthCompareVal * this.barMaxWidth).toFixed(2)
68 67
       })
69
-      console.log(this.simpleItems);
70 68
     },
71 69
     async newCompare(c) {
72 70
       if (!this.barMaxWidthCompareVal || this.barMaxWidthCompareVal === '') {