cyy 3 лет назад
Родитель
Сommit
7f6786ee22

+ 12 - 3
src/views/system/jbdHome/board/component/sample/EntrustNumber.vue

@@ -269,7 +269,10 @@ export default {
               label: {
                 show: true,
                 position: 'top',
-                color:'#fff'
+                color:'#fff',
+                formatter: function(params) {
+                  if (params.value > 0) {return params.value;}else if(params.value == 0){return ''}
+                }
               },
               //柱子的颜色
               itemStyle:{
@@ -284,7 +287,10 @@ export default {
               label: {
                 show: true,
                 position: 'top',
-                color:'#f5f12a'
+                color:'#f5f12a',
+                formatter: function(params) {
+                  if (params.value > 0) {return params.value;}else if(params.value == 0){return ''}
+                }
               },
               //柱子的颜色
               itemStyle:{
@@ -299,7 +305,10 @@ export default {
               label: {
                 show: true,
                 position: 'top',
-                color:'#f52aa0'
+                color:'#f52aa0',
+                formatter: function(params) {
+                  if (params.value > 0) {return params.value;}else if(params.value == 0){return ''}
+                }
               },
               //柱子的颜色
               itemStyle:{

+ 8 - 2
src/views/system/jbdHome/board/component/sample/MonthlyNumber.vue

@@ -230,7 +230,10 @@
               label: {
                 show: true,
                 position: 'top',
-                color:'#fff'
+                color:'#fff',
+                formatter: function(params) {
+                  if (params.value > 0) {return params.value;}else if(params.value == 0){return ''}
+                }
               },
               //柱子的颜色
               itemStyle:{
@@ -245,7 +248,10 @@
               label: {
                 show: true,
                 position: 'top',
-                color:'#f5f12a'
+                color:'#f5f12a',
+                formatter: function(params) {
+                  if (params.value > 0) {return params.value;}else if(params.value == 0){return ''}
+                }
               },
               //柱子的颜色
               itemStyle:{