@ -20,7 +20,7 @@ export default {
} ,
sauverScientifique : function ( ) {
/ / T O D O : c o m m e d a n s a j o u t
/ / T O D O
/ / f e t c h ( " l o c a l h o s t / a p i / v 1 / s c i e n t i f i q u e s " , { m e t h o d : " P U T " , b o d y : J S O N . s t r i n g i f y ( d o n n e e s ) } )
console . log ( this . champs )
this . changerModeEdition ( )
@ -41,8 +41,9 @@ export default {
< / tr >
< tr v-if ="this.modeEdition" >
< td v-for ="item in champs" >
<!-- input class = "form-control" type = "text" v - model = "item" -- >
<!-- TODO : changer le type si c 'est un nombre, date (voir si on peut parse la date), objet (bouton qui ouvre une popup qui propose de changer les champs de l' objet ) -- >
< td v-for ="cleChamp in Object.keys(champs)" >
< input class = "form-control" type = "text" v-model ="champs[cleChamp]" >
< / td >
< td >
<!-- TODO : aussi faire this . modeEdition = ! this . modeEdition dans sauverScientifique -- >