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