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
b2c8f6a4
Commit
b2c8f6a4
authored
Jun 09, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout suppression en cours ok
parent
be9c10a9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
63 deletions
+98
-63
Contenu.vue
src/Contenu.vue
+0
-1
Consulter_Contenu.vue
src/components/Consulter_Contenu.vue
+9
-2
Volet_Base.vue
src/components/Volet_Base.vue
+79
-50
Service.js
src/service/Service.js
+10
-10
No files found.
src/Contenu.vue
View file @
b2c8f6a4
...
...
@@ -20,7 +20,6 @@ export default {
},
publication
:
function
(
event
)
{
this
.
$emit
(
"publication"
,
{
document
:
event
.
document
})
}
},
props
:
[
'auteur'
]
...
...
src/components/Consulter_Contenu.vue
View file @
b2c8f6a4
<
template
>
<div>
<p>
Bonjour, je suis l'intérieur de
{{
contenuClique
}}
</p>
<p>
Bonjour, je suis l'intérieur de
{{
contenuClique
.
versionEnCours
}}
</p>
<p>
(Dans le futur, ces actions varieront en fonction du type de contenu cliqué dans la 'fenetre principale')
</p>
<div
id=
"actionsContenu"
>
...
...
@@ -24,7 +24,14 @@ export default {
props
:
[
'contenuClique'
,
'contenuCliqueProvenance'
],
methods
:
{
actionContenu
:
function
(
action
)
{
this
.
$emit
(
"actionContenu"
,
{
action
:
action
})
if
(
this
.
contenuCliqueProvenance
===
'en-cours'
){
this
.
$emit
(
"actionContenu"
,
{
action
:
action
,
id_contenu
:
this
.
contenuClique
.
reference
,
version
:
this
.
contenuClique
.
version
})
}
else
{
this
.
$emit
(
"actionContenu"
,
{
action
:
action
,
id_contenu
:
this
.
contenuClique
.
_id
,
version
:
this
.
contenuClique
.
versionEnCours
[
"numero"
]})
}
},
revenirArriere
:
function
()
{
this
.
$emit
(
"retour_arriere"
,
{
panierChoisi
:
this
.
contenuCliqueProvenance
!==
'banque'
})
...
...
src/components/Volet_Base.vue
View file @
b2c8f6a4
This diff is collapsed.
Click to expand it.
src/service/Service.js
View file @
b2c8f6a4
...
...
@@ -7,10 +7,10 @@ export default {
login
(
data
)
{
let
login
=
data
[
0
]
let
motDePasse
=
data
[
1
]
/* let reponse = ""
axios.get(urlBase + "checkUser?login=" + login + "&password=" + motDePasse).then(function (response) {
reponse = response.data
})*/
/* let reponse = ""
axios.get(urlBase + "checkUser?login=" + login + "&password=" + motDePasse).then(function (response) {
reponse = response.data
})*/
return
axios
.
get
(
urlBase
+
"checkUser?login="
+
login
+
"&password="
+
motDePasse
)
},
...
...
@@ -26,7 +26,7 @@ export default {
return
axios
.
get
(
urlBase
+
"getContenu/"
+
idContenu
)
},
mettre
ContenuTiers
(
data
){
creer
ContenuTiers
(
data
){
axios
.
patch
(
urlBase
+
"ajouterTiers"
,
data
)
},
...
...
@@ -36,7 +36,7 @@ export default {
creerEnCours
(
data
){
axios
.
post
(
urlBase
+
"newEnCours"
,
data
)
return
axios
.
post
(
urlBase
+
"newEnCours"
,
data
)
},
supprimerEnCours
(
idEnCours
){
...
...
@@ -45,15 +45,15 @@ export default {
publierContenu
(
data
){
axios
.
post
(
urlBase
+
"demandePublication/"
,
data
)
axios
.
post
(
urlBase
+
"demandePublication/"
,
data
)
},
supprimerContenu
(
idContenu
){
axios
.
delete
(
urlBase
+
"de
mandePublication
/"
+
idContenu
)
axios
.
delete
(
urlBase
+
"de
letePerso
/"
+
idContenu
)
},
supprimerTiers
(
idT
iers
){
axios
.
delete
(
urlBase
+
"deleteTiers
/"
+
idT
iers
)
supprimerTiers
(
auteur
,
id_t
iers
){
axios
.
delete
(
urlBase
+
"deleteTiers
?auteur="
+
auteur
+
"&id_tiers="
+
id_t
iers
)
},
getPublications
(
auteur
,
emise
){
...
...
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