Commit c4ff6f76 authored by Jérémie Passerat's avatar Jérémie Passerat

Edition, export ok xml numériques

parent cc0f74ab
......@@ -134,7 +134,6 @@ export default {
this.questionParsee.liste_reponse = this.reponses
this.questionParsee.liste_feedback = this.feedbacks
this.noteReponse = this.questionParsee.liste_note.map(note => note + "%")
this.questionParsee.liste_note = this.notes.map(note => note.substring(0, note.length-1))
this.questionParsee.liste_note = this.questionParsee.liste_note.map(note => {if (note === 'Aucun') return '0'; else return note;})
this.questionParsee.melange_reponse = this.isShuffle
......
......@@ -65,7 +65,7 @@
</select>
</td>
</tr>
<!-- <tr style="height: 69px">
<!-- <tr style="height: 69px">
<td style="width: 30%; text-align: left">Pénalité d'unité</td>
<td style="width: 70%">
......@@ -167,6 +167,44 @@ export default {
this.questionParsee.note_defaut = this.noteDefaut
this.questionParsee.feedback_general = this.generalFeedback
this.questionParsee.liste_reponse = this.reponses
this.questionParsee.liste_feedback = this.feedback
this.questionParsee.liste_note = this.notes.map(note => note.substring(0, note.length-1))
this.questionParsee.liste_note = this.questionParsee.liste_note.map(note => {if (note === 'Aucun') return '0'; else return note;})
this.questionParsee.liste_tolerance = this.tolerance
this.questionParsee.liste_unite_nom = this.unites
this.questionParsee.liste_unite_coef = this.unitesCoeffs
this.questionParsee.position_unite = this.positionUnite === this.optionsPositionUnite[0] ? '0' : '1'
switch (this.positionUnite) {
case (this.optionsTraitementUnite[0]):
this.questionParsee.saisie_unite = 3
this.questionParsee.traitement_unite = 0
break
case (this.optionsTraitementUnite[1]):
this.questionParsee.traitement_unite = 0
break
case (this.optionsTraitementUnite[2]):
this.questionParsee.traitement_unite = 1
break
}
if (this.questionParsee.saisie_unite !== 3){
switch (this.traitementUnite) {
case (this.optionsTraitementUnite[0]):
this.questionParsee.traitement_unite = 0
break
case (this.optionsTraitementUnite[1]):
this.questionParsee.traitement_unite = 1
break
case (this.optionsTraitementUnite[2]):
this.questionParsee.traitement_unite = 2
break
}
}
this.$emit("actionMoodle", {action: actionChoisie, questionParsee: this.questionParsee})
}
},
/**
......@@ -192,7 +230,8 @@ export default {
ajouterReponse: function () {
this.reponses.push("")
this.notes.push(this.options[0])
this.feedbacks.push("")
this.feedback.push(" ")
this.tolerance.push("0")
},
/**
* @vuese
......
......@@ -115,6 +115,7 @@ export default {
this.questionParsee.liste_feedback = this.feedbackReponse
this.questionParsee.majuscule = this.choixCasse === this.optionsCasse[0] ? 0 : 1
/* this.texteReponse = this.questionParsee.liste_reponse.filter(reponse => reponse)
this.noteReponse = this.questionParsee.liste_note.map(note => note + "%")
this.feedbackReponse = this.questionParsee.liste_feedback
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment