Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenQuizz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Weber Rodolphe
OpenQuizz
Commits
c4ff6f76
Commit
c4ff6f76
authored
Sep 24, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edition, export ok xml numériques
parent
cc0f74ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
19 deletions
+58
-19
Edit_Choix_Multiple.vue
src/components/moodle/Edit_Choix_Multiple.vue
+0
-1
Edit_Numerique.vue
src/components/moodle/Edit_Numerique.vue
+57
-18
Edit_Reponse_Courte.vue
src/components/moodle/Edit_Reponse_Courte.vue
+1
-0
No files found.
src/components/moodle/Edit_Choix_Multiple.vue
View file @
c4ff6f76
...
...
@@ -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
...
...
src/components/moodle/Edit_Numerique.vue
View file @
c4ff6f76
...
...
@@ -34,7 +34,7 @@
<td
style=
"width: 30%; text-align: left"
>
Reponse
{{
j
}}
</td>
<td
style=
"width: 70%; text-align: left"
>
<input
type=
"text"
style=
"height: 25px; width: 75px; margin-right: 5px"
v-model=
"reponses[j - 1]"
/>
Erreur
Erreur
<input
type=
"text"
style=
"height: 25px; width: 75px; margin-left: 5px; margin-right: 5px"
v-model=
"tolerance[j - 1]"
/>
Note
<select
style=
"margin-left: 5px"
v-model=
"notes[j - 1]"
>
...
...
@@ -60,18 +60,18 @@
<tr
style=
"height: 69px"
>
<td
style=
"width: 30%; text-align: left"
>
Traitement de l'unité
</td>
<td
style=
"width: 70%; text-align: left"
>
<select
v-model=
"traitementUnite"
@
change=
"changerOptions"
>
<option
v-for=
"i in optionsTraitementUnite.length"
:key=
"i"
>
{{optionsTraitementUnite[i - 1]}}
</option>
</select>
<select
v-model=
"traitementUnite"
@
change=
"changerOptions"
>
<option
v-for=
"i in optionsTraitementUnite.length"
:key=
"i"
>
{{optionsTraitementUnite[i - 1]}}
</option>
</select>
</td>
</tr>
<!-- <tr style="height: 69px">
<td style="width: 30%; text-align: left">Pénalité d'unité</td>
<td style="width: 70%">
<!-- <tr style="height: 69px">
<td style="width: 30%; text-align: left">Pénalité d'unité</td>
<td style="width: 70%">
</td>
</tr>-->
</td>
</tr>-->
<tr
style=
"height: 69px"
>
<td
style=
"width: 30%; text-align: left"
>
Les unités sont saisies en utilisant
</td>
<td
style=
"width: 70%; text-align: left"
>
...
...
@@ -93,15 +93,15 @@
<!-- Unités -->
<
template
v-for=
"i in unites.length"
>
<tr
style=
"height: 69px"
:key=
"i + 'unite'"
>
<td
style=
"width: 30%; text-align: left"
>
Unité
</td>
<td
style=
"width: 70%; text-align: left"
>
<input
type=
"text"
style=
"width: 7vw; margin-right: 1vw"
v-model=
"unites[i - 1]"
>
Coefficient
<input
type=
"text"
style=
"width: 7vw; margin-left: 1vw"
v-model=
"unitesCoeffs[i - 1]"
disabled
>
<tr
style=
"height: 69px"
:key=
"i + 'unite'"
>
<td
style=
"width: 30%; text-align: left"
>
Unité
</td>
<td
style=
"width: 70%; text-align: left"
>
<input
type=
"text"
style=
"width: 7vw; margin-right: 1vw"
v-model=
"unites[i - 1]"
>
Coefficient
<input
type=
"text"
style=
"width: 7vw; margin-left: 1vw"
v-model=
"unitesCoeffs[i - 1]"
disabled
>
</td>
</tr>
</td>
</tr>
</
template
>
<span
class=
"nvelleReponse"
@
click=
"ajouterUnite"
>
Ajouter une unité
</span>
...
...
@@ -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
...
...
src/components/moodle/Edit_Reponse_Courte.vue
View file @
c4ff6f76
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment