|
@@ -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 === '') {
|