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
d947340c
Commit
d947340c
authored
May 28, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Début de la page mise à jour
parent
314e7f8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
8 deletions
+140
-8
Maj.vue
src/Maj.vue
+80
-2
Menu.vue
src/Menu.vue
+1
-0
Consulter_Contenu.vue
src/components/Consulter_Contenu.vue
+41
-0
Volet_Base.vue
src/components/Volet_Base.vue
+18
-6
No files found.
src/Maj.vue
View file @
d947340c
<
template
>
<div>
<span
class=
"niveau"
id=
"recues"
v-on:click=
"naviguer"
>
Maj Recues
</span><br>
<div
id=
"detailRecues"
class=
"masque"
><p>
Liste des maj recues
</p></div>
<div
id=
"detailRecues"
class=
"masque"
>
<table>
<thead>
<tr>
<th
colspan=
"6"
>
Contenus
</th>
</tr>
</thead>
<tr>
<th>
Titre
</th>
<th>
Auteur
</th>
<th>
Version actuelle
</th>
<th>
Date Version actuelle
</th>
<th>
Accepter
</th>
<th>
Refuser
</th>
</tr>
<tbody>
<tr>
</tr>
</tbody>
</table>
</div>
<span
class=
"niveau"
id=
"proposees"
v-on:click=
"naviguer"
>
Maj Proposées
</span>
<div
id=
"detailProposees"
class=
"masque"
><p>
Liste des maj proposees
</p></div>
<div
id=
"detailProposees"
class=
"masque"
>
<table>
<thead>
<tr>
<th
colspan=
"8"
>
Contenus
</th>
</tr>
</thead>
<tr>
<th>
Titre
</th>
<th>
Auteur
</th>
<th>
Version proposée
</th>
<th>
Date Version proposée
</th>
<th>
Etat
</th>
<th>
Conserver
</th>
<th>
Créer Nouveau
</th>
<th>
Supprimer
</th>
</tr>
<tbody>
<tr>
</tr>
</tbody>
</table>
</div>
</div>
</
template
>
...
...
@@ -46,4 +98,30 @@ div{
.affiche
{
display
:
block
;
}
table
{
margin-top
:
10px
;
margin-left
:
185px
;
margin-bottom
:
10px
;
width
:
1550px
;
}
th
,
td
{
border
:
1px
solid
#333
;
}
td
{
text-align
:
center
;
vertical-align
:
middle
;
}
thead
,
tfoot
{
background-color
:
#333
;
color
:
#fff
;
}
</
style
>
\ No newline at end of file
src/Menu.vue
View file @
d947340c
...
...
@@ -30,6 +30,7 @@ export default {
methods
:
{
choixMenuAnnexe
:
function
(
e
)
{
this
.
$emit
(
"menu_choisi"
,
{
choix
:
e
.
target
.
innerText
})
this
.
isAffiche
=
!
this
.
isAffiche
}
},
components
:{
...
...
src/components/Consulter_Contenu.vue
0 → 100644
View file @
d947340c
<
template
>
<div>
<p>
Bonjour, je suis l'intérieur de
{{
contenuClique
}}
</p>
<p>
(Dans le futur, ces actions varieront en fonction du type de contenu cliqué dans la 'fenetre principale')
</p>
<div
id=
"actionsContenu"
>
<button>
modifier le contenu
</button>
<button>
supprimer le contenu
</button>
<button>
publier le contenu
</button>
<button>
mettre le contenu en tiers
</button>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
"Consulter_Contenu"
,
props
:
[
'contenuClique'
]
}
</
script
>
<
style
scoped
>
div
{
text-align
:
center
;
}
#actionsContenu
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
}
#actionsContenu
>
button
{
width
:
auto
;
margin-left
:
45%
;
margin-right
:
45%
;
}
</
style
>
\ No newline at end of file
src/components/Volet_Base.vue
View file @
d947340c
<
template
>
<div>
<button
id=
"changerVariante"
v-on:click=
"changerVariante"
>
changer
</button>
<button
id=
"changerVariante"
v-
show=
"!modeConsultation"
v-
on:click=
"changerVariante"
>
changer
</button>
<div
id=
"principal"
>
<div
id=
"principal"
v-show=
"!modeConsultation"
>
<div
id=
"ensemble"
>
<button
id=
"boutonVolet"
v-on:click=
"desactiverVolet"
></button>
<div
class=
"full"
id=
"volet"
v-show=
"isActif"
>
...
...
@@ -34,7 +34,7 @@
<tbody>
<tr
v-show=
"panierChoisi"
v-for=
"(index) in contenus"
:key=
"index"
>
<td
class=
"modal titreContenu"
v-popover:tooltip=
"'prévisualisation'"
>
{{
index
}}
</td>
<td
class=
"modal titreContenu"
v-
on:click=
"chargerContenu"
v-
popover:tooltip=
"'prévisualisation'"
>
{{
index
}}
</td>
<td>
Auteur 1
</td>
<td>
with two columns
</td>
<td>
The table body
</td>
...
...
@@ -47,7 +47,7 @@
</tr>
<tr
v-show=
"!panierChoisi"
v-for=
"item in contenusbanque"
:key=
"item.titre"
>
<td
class=
"modal titreContenu"
v-popover:tooltip=
"'prévisualisation'"
>
{{
item
.
titre
}}
</td>
<td
class=
"modal titreContenu"
v-
on:click=
"chargerContenu"
v-
popover:tooltip=
"'prévisualisation'"
>
{{
item
.
titre
}}
</td>
<td>
{{
item
.
auteur
}}
</td>
<td>
The table body
</td>
<td>
with two columns
</td>
...
...
@@ -68,7 +68,9 @@
</div>
</div>
<div
v-show=
"panierChoisi"
class=
"circle"
v-on:click=
"ajouterContenu"
v-bind:style=
"
{'margin-left': '95%'}">
<Consulter
_Contenu
v-bind:contenuClique =
"contenuClique"
v-show=
"modeConsultation"
/>
<div
v-show=
"panierChoisi && !modeConsultation"
class=
"circle"
v-on:click=
"ajouterContenu"
v-bind:style=
"
{'margin-left': '95%'}">
</div>
...
...
@@ -80,12 +82,14 @@ import $ from 'jquery'
import
'jquery-ui-bundle'
import
Volet_Menu
from
"@/components/Volet_Menu"
;
import
Volet_Contenu
from
"@/components/Volet_Contenu"
;
import
Consulter_Contenu
from
"@/components/Consulter_Contenu"
;
export
default
{
name
:
"Volet_Base"
,
components
:
{
Volet_Menu
,
Volet_Contenu
Volet_Contenu
,
Consulter_Contenu
},
data
:
function
()
{
return
{
...
...
@@ -95,12 +99,15 @@ export default {
variante
:
false
,
contenus
:
[],
contenusbanque
:
[({
auteur
:
"Auteur_4"
,
titre
:
"Contenu_4"
})],
contenuClique
:
""
,
modalOn
:
false
,
modeConsultation
:
false
,
imgEtoile
:
"https://previews.123rf.com/images/ylivdesign/ylivdesign1612/ylivdesign161208906/67933171-ic%C3%B4ne-%C3%A9toile-%C3%A0-cinq-branches-jaunes-illustration-de-dessin-anim%C3%A9-d-ic%C3%B4ne-de-vecteur-%C3%A9toile-jaune-%C3%A0-cinq-branches-.jpg"
,
imgPoubelle
:
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAflBMVEX///8AAACampq4uLh5eXlcXFxlZWXr6+vFxcVFRUWurq6ioqL39/doaGju7u7Z2dmIiIjX19eoqKicnJxZWVlvb28qKirDw8Pl5eU6Ojq5ublAQEDOzs7f398dHR1OTk4xMTGRkZERERGLi4sbGxt+fn4kJCQLCwt0dHRSUlJ5VCwrAAAIRUlEQVR4nO2d6VYbSwyEHbyBMWbHEBKwCev7v+C9jruOMyqpx2YZKTn6fiLj6WJ60TZDr5ckSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkyd9PfzjajWHfe8g7svdtV/a8h7wjqTAVxicVpsL4QGF/Nq4z6//lCvdbP7mfCoOSCjekwqikwg2pMCqpcEMqjMq/r/CwjPtH6yd/lE8edjCq7RlcDFu4KeM+aPvg8KB88qbtgxeDDhXefvPgtkOFB+3D+QIOUmEqTIWpMBWmwlSYCj+Vm/bhfAE3HSqc9z2Yd6gwSZIkSbbm+HLQBZfHbgp/tPshn0J7SvKr+NmRwp9uCqcdKZy6Kew9dCLwwU9gb9GJwoWjwjcezu1osDeZzPe123s0OVsxOVJsD/vzyWRvMFLS6ReOCp94ONgVtNt7Xmznl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wy1aFCENEM0CX/7ByO0QhTQ1r1fd568FyoD4MsGwO8KI3m41P5/3GuJez8YpZ47OX/fnpeDaTOX3vF2AxonTxwm82qfMs+vQjFS3WKO/5/BDRXJrP/38lcfowgPIWzA8R40mLBp+s0FuOwr+v8HP/J2Kssswa7R+PvJ94B776yv8PEKtosUZ7Sff7iZbDWKH8v5IPEM+l+ewjP96Br79m/v3EKlokSZIkSZIkX81/MjFrMKxwu60AAAAASUVORK5CYII="
}
},
mounted
()
{
this
.
modeConsultation
=
false
$
(
'#ensemble'
).
draggable
()
},
...
...
@@ -154,6 +161,11 @@ export default {
ajouterContenu
:
function
()
{
this
.
contenus
.
push
(
"nouveau contenu"
)
},
chargerContenu
:
function
(
e
){
this
.
modeConsultation
=
true
;
this
.
contenuClique
=
e
.
target
.
innerText
alert
(
this
.
contenuClique
)
}
}
}
</
script
>
...
...
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