浏览代码

:wrench: swapped data sources of charts

tags/0.0.3^2
juancarbajal98 3 年前
父节点
当前提交
6f558f6c0a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      frontend/src/components/SummaryBar.vue

+ 3
- 3
frontend/src/components/SummaryBar.vue 查看文件

@@ -30,8 +30,8 @@ section.w-flex.column.pb5
30 30
                     p {{ tabContent[item].tab }}
31 31
                     SpiderChart(
32 32
                         :labels='aspects.map(label => label.name)'
33
-                        :profile-data='profileScore'
34
-                        :target-data='aspects.map(data => data.percentage)'
33
+                        :profile-data='aspects.map(data => data.percentage)'
34
+                        :target-data='targetScore'
35 35
                         :profile-name='name'
36 36
                         v-if='isTab'
37 37
                     )
@@ -92,7 +92,7 @@ export default {
92 92
     },
93 93
     emits: ['tab-change'],
94 94
     computed: {
95
-        profileScore(){
95
+        targetScore(){
96 96
             try{
97 97
                 let aspectResponses = currentProfile._profile.responses.filter(r => [1,2,3,4,5,6].indexOf(r.response_key_id) !== -1)
98 98
                 return aspectResponses.map(r => Number(r.val)) 

正在加载...
取消
保存