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
6c071f70
Commit
6c071f70
authored
Sep 16, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prévisualisation en-Cours moodle ok
parent
b37ea750
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
Previsualiser_Moodle.vue
src/Previsualiser_Moodle.vue
+11
-1
Volet_Base.vue
src/components/Volet_Base.vue
+2
-2
Service.js
src/service/Service.js
+3
-0
No files found.
src/Previsualiser_Moodle.vue
View file @
6c071f70
...
...
@@ -33,7 +33,9 @@ export default {
},
props
:
{
// texte du contenu survolé
id
:
{}
id
:
{},
// provenance du contenu survolé
provenance
:
{}
},
mounted
()
{
/**
...
...
@@ -41,9 +43,17 @@ export default {
* A chaque fois que prévisualiser_moodle est appelé on fait appel a parserTexte pour permettre d'appeler le bon composant d'affichage
*/
let
that
=
this
//alert(this.provenance)
if
(
this
.
provenance
!==
'en-cours'
)
{
Service
.
parserTexte
(
JSON
.
stringify
(
this
.
id
)).
then
(
function
(
response
)
{
that
.
questionParsee
=
response
.
data
})
}
else
{
Service
.
parserTexteEnCours
(
JSON
.
stringify
(
this
.
id
)).
then
(
function
(
response
)
{
that
.
questionParsee
=
response
.
data
})
}
},
}
</
script
>
...
...
src/components/Volet_Base.vue
View file @
6c071f70
...
...
@@ -73,7 +73,7 @@ isActif ? {'margin-left': '1vw', 'margin-right': '1vw'} : {'margin-left': '0.6vw
<b-popover
style=
"height: 700px; width: 700px"
class=
"non"
v-on:show=
"rechercherTexte(item._id, item.provenance, item.source)"
:target=
"JSON.stringify(item._id)"
triggers=
"hover"
placement=
"bottom"
>
<p
id=
"beautiful"
v-html=
"texteDuContenu"
v-if=
"!isMoodle"
></p>
<Previsualiser
_Moodle
v-bind:id=
"item._id"
v-else
></Previsualiser
_Moodle
>
<Previsualiser
_Moodle
v-bind:id=
"item._id"
v-
bind:provenance=
"item.provenance"
v-
else
></Previsualiser
_Moodle
>
</b-popover>
<!-- auteur -->
<td>
{{
item
.
auteur
}}
</td>
...
...
@@ -105,7 +105,7 @@ isActif ? {'margin-left': '1vw', 'margin-right': '1vw'} : {'margin-left': '0.6vw
<td
:id=
"'a' + JSON.stringify(item._id)"
v-on:click=
"chargerContenu(item, 'banque')"
>
{{
item
.
titre
}}
</td>
<b-popover
:target=
"'a' + JSON.stringify(item._id)"
v-on:show=
"rechercherTexte(item._id, 'banque', item.source)"
triggers=
"hover"
placement=
"bottom"
>
<p
v-html=
"texteDuContenu"
v-if=
"!isMoodle"
></p>
<Previsualiser
_Moodle
v-else
></Previsualiser
_Moodle
>
<Previsualiser
_Moodle
v-
bind:id=
"item._id"
v-bind:provenance=
"contenuCliqueProvenance"
v-
else
></Previsualiser
_Moodle
>
</b-popover>
<td>
{{
item
.
auteur
}}
</td>
<td>
{{
item
.
versionEnCours
.
numero
}}
</td>
...
...
src/service/Service.js
View file @
6c071f70
...
...
@@ -180,6 +180,9 @@ export default {
return
axios
.
get
(
urlBase
+
contenus
+
"parserContenu/"
+
id_contenu
,
this
.
getHeader
())
},
// gestion des en-cours
parserTexteEnCours
(
id_contenu
)
{
return
axios
.
get
(
urlBase
+
en_cours
+
"parserContenuEnCours/"
+
id_contenu
,
this
.
getHeader
())
},
creerEnCours
(
data
)
{
return
axios
.
post
(
urlBase
+
en_cours
+
"newEnCours"
,
data
,
this
.
getHeader
())
},
...
...
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