This commit is contained in:
parent
797960b91e
commit
eafcdef2d0
@ -11,7 +11,7 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="skillbars">
|
<el-main class="skillbars">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<div v-for="skill in sortSkills(person.skills)" :key="skill.name" class="progress-item">
|
<div v-for="skill in person.skills" :key="skill.name" class="progress-item">
|
||||||
<span>{{ skill.name }}</span>
|
<span>{{ skill.name }}</span>
|
||||||
<el-progress :percentage="skill.strength" />
|
<el-progress :percentage="skill.strength" />
|
||||||
</div>
|
</div>
|
||||||
@ -64,6 +64,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sortSkills(skills) {
|
sortSkills(skills) {
|
||||||
|
// Currently not used pls sort manually
|
||||||
return skills.sort((a, b) => (a.strength > b.strength) ? -1 : 1)
|
return skills.sort((a, b) => (a.strength > b.strength) ? -1 : 1)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<el-row v-if="results.length > 0" :gutter="8">
|
<el-row v-if="results.length > 0" :gutter="8">
|
||||||
<el-col v-for="person in results" :key="person.name" :xs="{span: 24}" style="margin-bottom:30px;">
|
<el-col v-for="person in results" :key="person.name" :xs="{span: 24}" style="margin-bottom:30px;">
|
||||||
<box-card v-key="person.name" :person="person" />
|
<box-card :key="person.name" :person="person" />
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row v-if="value.length > 0 && results.length == 0" style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
|
<el-row v-if="value.length > 0 && results.length == 0" style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
|
||||||
|
Loading…
Reference in New Issue
Block a user