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
b71a7fe3
Commit
b71a7fe3
authored
Sep 24, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edition, export ok dans xml calculée simple
parent
6bcfdad1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
Edit_Calculee_Simple.vue
src/components/moodle/Edit_Calculee_Simple.vue
+45
-2
No files found.
src/components/moodle/Edit_Calculee_Simple.vue
View file @
b71a7fe3
...
@@ -198,6 +198,50 @@ export default {
...
@@ -198,6 +198,50 @@ export default {
this
.
questionParsee
.
intitule_question
=
this
.
texteQuestion
this
.
questionParsee
.
intitule_question
=
this
.
texteQuestion
this
.
questionParsee
.
note_defaut
=
this
.
noteDefaut
this
.
questionParsee
.
note_defaut
=
this
.
noteDefaut
this
.
questionParsee
.
feedback_general
=
this
.
generalFeedback
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
.
questionParsee
.
liste_tolerance_type
=
this
.
typeTolerance
===
this
.
optionType
[
0
]
?
'1'
:
'2'
this
.
questionParsee
.
liste_reponse_taille
=
this
.
tailleReponse
.
toString
()
this
.
questionParsee
.
liste_reponse_format
=
this
.
formatReponse
=
this
.
optionFormat
[
0
]
?
'1'
:
'2'
this
.
$emit
(
"actionMoodle"
,
{
action
:
actionChoisie
,
questionParsee
:
this
.
questionParsee
})
}
}
},
},
/**
/**
...
@@ -257,10 +301,9 @@ export default {
...
@@ -257,10 +301,9 @@ export default {
this
.
positionUnite
=
this
.
optionsPositionUnite
[
this
.
questionParsee
.
position_unite
]
this
.
positionUnite
=
this
.
optionsPositionUnite
[
this
.
questionParsee
.
position_unite
]
this
.
saisieUnite
=
this
.
optionsZoneSaisieUnite
[
this
.
questionParsee
.
saisie_unite
]
this
.
saisieUnite
=
this
.
optionsZoneSaisieUnite
[
this
.
questionParsee
.
saisie_unite
]
if
(
this
.
questionParsee
.
saisie_unite
===
"3"
)
{
if
(
this
.
questionParsee
.
saisie_unite
===
"3"
)
{
this
.
noUnit
=
true
this
.
noUnit
=
true
this
.
traitementUnite
=
this
.
optionsTraitementUnite
[
this
.
questionParsee
.
traitement_unite
]
this
.
traitementUnite
=
this
.
optionsTraitementUnite
[
0
]
this
.
saisieUnite
=
this
.
optionsZoneSaisieUnite
[
0
]
this
.
saisieUnite
=
this
.
optionsZoneSaisieUnite
[
0
]
}
}
else
{
else
{
...
...
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