43 lines
573 B
JavaScript
43 lines
573 B
JavaScript
var sectionSkillsComponent = {
|
|
template: '#section-skills-template',
|
|
|
|
|
|
|
|
mounted: function()
|
|
{
|
|
|
|
},
|
|
|
|
|
|
|
|
destroyed: function()
|
|
{
|
|
|
|
},
|
|
|
|
|
|
|
|
data: function()
|
|
{
|
|
return {
|
|
item: {}
|
|
};
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
addSkill: function()
|
|
{
|
|
var item = this.$root.getDefaultSkill();
|
|
this.$root.sections.skills.push(item);
|
|
},
|
|
|
|
addKeyword: function(index)
|
|
{
|
|
var item = this.$root.getDefaultSkillKeywoard();
|
|
//console.log("addHighlight(" + index + ")", this.$root.sections.volunteer[index]);
|
|
this.$root.sections.skills[index].keywords.push(item);
|
|
}
|
|
}
|
|
}; |