Parcourir la source

JS显示精度问题

callm il y a 11 mois
Parent
commit
1bdc327685

+ 1 - 1
src/components/assemblyechart/bottom/bottomLeft2Chart/chart.vue

@@ -240,7 +240,7 @@ export default {
         this.options.series[2].data = series2;
         this.options.series[3].data = series3;
         this.options.series[4].data = series4;
-        this.options.yAxis[0].max = maxnumber*1.2;
+        this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
             /*let myChart = this.$children[0].chart;
             myChart.setOption({
                xAxis: {

+ 1 - 1
src/components/dipechart/bottom/bottomLeft2Chart/chart.vue

@@ -242,7 +242,7 @@ export default {
         this.options.series[2].data = series2;
         this.options.series[3].data = series3;
         this.options.series[4].data = series4;
-        this.options.yAxis[0].max = maxnumber*1.2;
+        this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
             /*let myChart = this.$children[0].chart;
             myChart.setOption({
                xAxis: {

+ 1 - 1
src/components/djechart/bottom/bottomLeft2Chart/chart.vue

@@ -242,7 +242,7 @@ export default {
         this.options.series[2].data = series2;
         this.options.series[3].data = series3;
         this.options.series[4].data = series4;
-        this.options.yAxis[0].max = maxnumber*1.2;
+        this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
             /*let myChart = this.$children[0].chart;
             myChart.setOption({
                xAxis: {

+ 1 - 1
src/components/dplechart/bottom/bottomLeft2Chart/index.vue

@@ -242,7 +242,7 @@ export default {
             this.options.series[2].data = series2;
             this.options.series[3].data = series3;
             this.options.series[4].data = series4;
-            this.options.yAxis[0].max = maxnumber*1.2;
+            this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
 
             /*let myChart = this.$children[0].chart;
             myChart.setOption({

+ 1 - 1
src/components/packageechart/bottom/bottomLeft2Chart/chart.vue

@@ -243,7 +243,7 @@ export default {
             this.options.series[2].data = series2;
             this.options.series[3].data = series3;
             this.options.series[4].data = series4;
-            this.options.yAxis[0].max = maxnumber*1.2;
+            this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
                        /*let myChart = this.$children[0].chart;
                        myChart.setOption({
                           xAxis: {

+ 1 - 1
src/components/smtechart/up/up1Chart/chart.vue

@@ -249,7 +249,7 @@ export default {
                         this.options.series[2].data = series2;
             this.options.series[3].data = series3;
             this.options.series[4].data = series4;
-            this.options.yAxis[0].max = maxnumber*1.2;
+            this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
                        /*let myChart = this.$children[0].chart;
                        myChart.setOption({
                           xAxis: {

+ 1 - 1
src/components/smttestechart/bottom/bottomLeft2Chart/chart.vue

@@ -242,7 +242,7 @@ export default {
         this.options.series[2].data = series2;
         this.options.series[3].data = series3;
         this.options.series[4].data = series4;
-        this.options.yAxis[0].max = maxnumber*1.2;
+        this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
             /*let myChart = this.$children[0].chart;
             myChart.setOption({
                xAxis: {