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()