Parcourir la source

看板去小数

cyy il y a 1 an
Parent
commit
7812578997

+ 6 - 1
src/views/business/deviceManagement/components/barChart.vue

@@ -149,8 +149,13 @@
           },
           yAxis: {
             type: 'value',
+            min:0,
             axisLabel: {
-                color: '#fff'
+                color: '#fff',
+                formatter: function(value) {
+                  console.log(value)
+                  return (value+'').indexOf('.')===-1?value: ''
+                }
             },
             splitLine:{
               show:true,

+ 6 - 1
src/views/business/deviceManagement/components/barCharto.vue

@@ -205,7 +205,12 @@
           },
           yAxis: {
             axisLabel: {
-              color: '#fff'
+              color: '#fff',
+              min:0,
+              formatter: function(value) {
+                  console.log(value)
+                  return (value+'').indexOf('.')===-1?value: ''
+              }
             },
             // interval: interval
           },

+ 1 - 0
src/views/business/labManagement/components/mergeChart.vue

@@ -157,6 +157,7 @@
                                 color: '#fff'
                             },
                             min: 0,
+                            minInterval: 1,
                             axisLabel: {
                                 show: true,
                                 textStyle: {

+ 7 - 1
src/views/business/trainManagement/components/jobPlanChart.vue

@@ -135,8 +135,14 @@
           },
           yAxis: {
             type: 'value',
+            // minInterval: 1,
+            min:0,
             axisLabel: {
-                color: '#fff'
+                color: '#fff',
+                formatter: function(value) {
+                  console.log(value)
+                  return (value+'').indexOf('.')===-1?value: ''
+                }
             },
             splitLine:{
               show:true,

+ 6 - 1
src/views/business/trainManagement/components/preWorkChart.vue

@@ -118,8 +118,13 @@
           },
           yAxis: {
             type: 'value',
+            min:0,
             axisLabel: {
-                color: '#fff'
+                color: '#fff',
+                formatter: function(value) {
+                  console.log(value)
+                  return (value+'').indexOf('.')===-1?value: ''
+                }
             },
             splitLine:{
               show:true,

+ 6 - 1
src/views/business/trainManagement/components/trainingStaffChart.vue

@@ -157,8 +157,13 @@
           },
           yAxis: {
             type: 'value',
+            min:0,
             axisLabel: {
-                color: '#fff'
+                color: '#fff',
+                formatter: function(value) {
+                  console.log(value)
+                  return (value+'').indexOf('.')===-1?value: ''
+                }
             },
             // boundaryGap:true,
             splitLine:{