|
|
|
@ -11,22 +11,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
recupTeam: function (team) {
|
|
|
|
|
console.log('team.addTeam', team);
|
|
|
|
|
this.allTeam.push(team);
|
|
|
|
|
},
|
|
|
|
|
editParam: function (team) {
|
|
|
|
|
this.teamAEdit=team
|
|
|
|
|
console.log('lanceEdit')
|
|
|
|
|
},
|
|
|
|
|
updateTeam: function (team) {
|
|
|
|
|
console.log('update')
|
|
|
|
|
for (var i = 0; i < this.allTeam.length; i++) {
|
|
|
|
|
if (this.allTeam[i].id == this.teamAEdit.id) {
|
|
|
|
|
console.log('update + +')
|
|
|
|
|
this.allTeam[i].name = team.name
|
|
|
|
|
this.allTeam[i].description=team.description
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.teamAEdit = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|