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
371e1ed9
Commit
371e1ed9
authored
Sep 28, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction bug affichage note d'un contenu
parent
722cf5cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Modifier_Contenu.vue
src/components/Modifier_Contenu.vue
+6
-1
Service.js
src/service/Service.js
+2
-2
No files found.
src/components/Modifier_Contenu.vue
View file @
371e1ed9
...
...
@@ -287,7 +287,9 @@ export default {
calculerNoteContenu
:
function
()
{
if
(
this
.
sourceContenu
!==
"moodle"
&&
this
.
contenuCliqueProvenance
!==
""
)
{
console
.
log
(
parseInt
(
this
.
versionChoisie
)
+
" "
+
this
.
versionMax
)
if
(
parseInt
(
this
.
versionChoisie
)
!==
this
.
versionMax
)
{
console
.
log
(
"Ici"
)
for
(
let
it
in
this
.
contenuClique
.
historique
)
{
if
(
this
.
contenuClique
.
historique
[
it
].
numero
===
parseInt
(
this
.
versionChoisie
))
{
if
(
this
.
contenuClique
.
historique
[
it
].
note
===
0
)
{
...
...
@@ -298,6 +300,7 @@ export default {
}
return
-
1
}
else
{
console
.
log
(
"Là"
)
if
(
this
.
contenuClique
.
versionEnCours
.
note
===
0
)
{
return
0
}
...
...
@@ -328,9 +331,11 @@ export default {
if
(
this
.
contenuCliqueProvenance
===
'perso'
)
{
this
.
versionMax
=
this
.
contenuClique
.
versionEnCours
.
numero
alert
(
this
.
versionMax
)
this
.
versionChoisie
=
this
.
versionMax
}
else
{
this
.
versionChoisie
=
this
.
contenuClique
.
version
this
.
versionMax
=
this
.
versionChoisie
}
let
that
=
this
...
...
@@ -342,7 +347,7 @@ export default {
if
(
nombre
!==
'-'
)
{
//nombre = JSON.parse(nombre)
//that.rating = nombre.note
that
.
rating
=
nombre
that
.
rating
=
parseInt
(
nombre
)
that
.
notePresente
=
true
}
})
...
...
src/service/Service.js
View file @
371e1ed9
...
...
@@ -2,8 +2,8 @@ import axios from 'axios'
import
jwt
from
"jsonwebtoken"
;
//import Service from "@/service/Service";
const
urlBase
=
"http://127.0.0.1:5000/"
//
const urlBase = "http://193.70.2.155/api/"
//
const urlBase = "http://127.0.0.1:5000/"
const
urlBase
=
"http://193.70.2.155/api/"
const
users
=
"utilisateurs/"
const
contenus
=
"contenus/"
const
en_cours
=
"en_cours/"
...
...
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