Просмотр исходного кода

:recycle: rename role -> target since we do not know if its a role or job candidate | moved graph data somewhere for easier extending

tags/0.0.2
j 3 лет назад
Родитель
Сommit
832c583ea2

+ 2
- 2
frontend/src/components/ProfileCard.vue Просмотреть файл

57
 import PairingButton from './PairingButton.vue'
57
 import PairingButton from './PairingButton.vue'
58
 
58
 
59
 const router = useRouter()
59
 const router = useRouter()
60
-// const isPaired = ref(true)
61
-const isPaired = ref(false)
60
+const isPaired = ref(true)
61
+// const isPaired = ref(false)
62
 
62
 
63
 const props = defineProps({
63
 const props = defineProps({
64
     card: {
64
     card: {

+ 2
- 2
frontend/src/components/SpiderChart.vue Просмотреть файл

16
         required: true,
16
         required: true,
17
         type: Object,
17
         type: Object,
18
     },
18
     },
19
-    roleData: {
19
+    targetData: {
20
         required: true,
20
         required: true,
21
         type: Object,
21
         type: Object,
22
     },
22
     },
39
 }
39
 }
40
 const role = {
40
 const role = {
41
     label: 'Role',
41
     label: 'Role',
42
-    data: props.roleData,
42
+    data: props.targetData,
43
     backgroundColor: 'rgba(3, 136, 166, 0.30)',
43
     backgroundColor: 'rgba(3, 136, 166, 0.30)',
44
     borderColor: '#0388A6',
44
     borderColor: '#0388A6',
45
     ...chartStyleDefaults,
45
     ...chartStyleDefaults,

+ 6
- 2
frontend/src/components/SummaryBar.vue Просмотреть файл

29
                     p {{ tabContent[item].tab }}
29
                     p {{ tabContent[item].tab }}
30
                     SpiderChart(
30
                     SpiderChart(
31
                         :labels='aspects.map(label => label.name)'
31
                         :labels='aspects.map(label => label.name)'
32
-                        :profile-data='[5.7, 5.2, 4.8, 5.2, 4.9, 4.9]'
33
-                        :role-data='[5.3, 4.8, 5.7, 4.8, 5.6, 4.8]'
32
+                        :profile-data='profileScore'
33
+                        :target-data='targetScore'
34
                         profile-name='lucy'
34
                         profile-name='lucy'
35
                         v-if='isTab'
35
                         v-if='isTab'
36
                     )
36
                     )
84
         },
84
         },
85
     },
85
     },
86
     emits: ['tab-change'],
86
     emits: ['tab-change'],
87
+    data: () => ({
88
+        profileScore: [5.7, 5.2, 4.8, 5.2, 4.9, 4.9],
89
+        targetScore: [5.3, 4.8, 5.7, 4.8, 5.6, 4.8],
90
+    }),
87
     methods: {
91
     methods: {
88
         onTabChanged(tabs) {
92
         onTabChanged(tabs) {
89
             this.$emit('tab-change', tabs)
93
             this.$emit('tab-change', tabs)

Загрузка…
Отмена
Сохранить