|
|
@ -18,7 +18,7 @@ export default{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkFields: function() {
|
|
|
|
checkFields: function() {
|
|
|
|
this.errMessage="";
|
|
|
|
this.errMessage="";
|
|
|
|
document.querySelectorAll("#id").removeAttribute("style");
|
|
|
|
document.querySelector("#id").removeAttribute("style");
|
|
|
|
document.querySelector("#name").removeAttribute("style");
|
|
|
|
document.querySelector("#name").removeAttribute("style");
|
|
|
|
document.querySelector("#desc").removeAttribute("style");
|
|
|
|
document.querySelector("#desc").removeAttribute("style");
|
|
|
|
if(this.id===""||this.name===""||this.description===""){
|
|
|
|
if(this.id===""||this.name===""||this.description===""){
|
|
|
@ -46,7 +46,6 @@ export default{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.errMessage.length===0){
|
|
|
|
if(this.errMessage.length===0){
|
|
|
|
console.log("jappelle la fonction");
|
|
|
|
|
|
|
|
this.addTeam();
|
|
|
|
this.addTeam();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -56,9 +55,9 @@ export default{
|
|
|
|
this.$emit("addTeam",team);
|
|
|
|
this.$emit("addTeam",team);
|
|
|
|
this.id='';
|
|
|
|
this.id='';
|
|
|
|
this.name='';
|
|
|
|
this.name='';
|
|
|
|
|
|
|
|
this.description='';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
myfun: function() {
|
|
|
|
myfun: function() {
|
|
|
|
console.log("gngn");
|
|
|
|
|
|
|
|
this.clicked=!this.clicked;
|
|
|
|
this.clicked=!this.clicked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|