seimin 5 天之前
父节点
当前提交
c9a4ae22b7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/BusinessTotal.vue

+ 2 - 2
src/components/BusinessTotal.vue

@@ -51,7 +51,7 @@ export default {
51
               show: true,
51
               show: true,
52
               color: 'rgba(255, 255, 255, 0.85)',
52
               color: 'rgba(255, 255, 255, 0.85)',
53
               formatter: (params) => {
53
               formatter: (params) => {
54
-                return `${params.name}:${params.value}\n${params.percent}`
54
+                return `${params.name}:${params.value}\n${params.percent}%`
55
               },
55
               },
56
               textStyle: {
56
               textStyle: {
57
                 lineHeight: 14
57
                 lineHeight: 14
@@ -89,7 +89,7 @@ export default {
89
       this.gradeRankingList = result.data.map(v => ({
89
       this.gradeRankingList = result.data.map(v => ({
90
         name: v.statisticsDateType || '',
90
         name: v.statisticsDateType || '',
91
         value: v.sum || 0,
91
         value: v.sum || 0,
92
-        percent: v.percent || '0%'
92
+        percent: v.percent || 0
93
       }))
93
       }))
94
       this.draw()
94
       this.draw()
95
       this.polling()
95
       this.polling()