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