Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wotwizard-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
wotwizard-ui
Commits
57c1830f
Commit
57c1830f
authored
3 years ago
by
Pierre-Jean CHANCELLIER
Browse files
Options
Downloads
Patches
Plain Diff
add links to members in forecasts vue
parent
6ac13f8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pages/previsions.vue
+33
-15
33 additions, 15 deletions
pages/previsions.vue
with
33 additions
and
15 deletions
pages/previsions.vue
+
33
−
15
View file @
57c1830f
...
...
@@ -9,31 +9,32 @@
<li>
{{
wwResult
.
permutations_nb
}}
permutations
</li>
</ul>
</div>
<div
class=
"row
mb-4
"
>
<div
class=
"col"
>
<div
class=
"row"
>
<div
class=
"col
-12 text-center mb-4
"
>
<div
class=
"form-check form-check-inline"
>
<input
class=
"form-check-input"
type=
"radio"
id=
"forecastsByNames"
value=
"forecastsByNames"
checked
v-model=
"display"
>
<input
class=
"form-check-input"
type=
"radio"
id=
"forecastsByNames"
value=
"forecastsByNames"
checked
v-model=
"display"
@
change=
"save"
>
<label
class=
"form-check-label"
for=
"forecastsByNames"
>
Tri par membres
</label>
</div>
<div
class=
"form-check form-check-inline"
>
<input
class=
"form-check-input"
type=
"radio"
id=
"forecastsByDates"
value=
"forecastsByDates"
v-model=
"display"
>
<input
class=
"form-check-input"
type=
"radio"
id=
"forecastsByDates"
value=
"forecastsByDates"
v-model=
"display"
@
change=
"save"
>
<label
class=
"form-check-label"
for=
"forecastsByDates"
>
Tri par dates
</label>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-lg-6"
>
<div
class=
"col-lg-8 m-auto"
>
<div
v-if=
"display=='forecastsByNames'"
>
<h3>
Prévisions par membres
</h3>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped
table-hover
"
>
<tbody>
<tr
v-for=
"forecast in wwResult.forecastsByNames"
:key=
"forecast.member.uid"
>
<th
scope=
"row"
>
{{
forecast
.
member
.
uid
}}
</th>
<tr
v-for=
"forecast in wwResult.forecastsByNames"
:key=
"forecast.member.uid"
@
click=
"$router.push(
{ path: '/membres/' + forecast.member.hash })">
<th
scope=
"row"
>
{{
forecast
.
member
.
uid
}}
<BadgeStatus
:membre=
"forecast.member"
/>
</th>
<td
class=
"p-0"
>
<div
class=
"d-flex justify-content-between p-3"
v-for=
"date in forecast.forecasts"
:key=
"date.date"
>
<div>
{{
date
.
date
|
formatDateHeure
}}
</div>
...
...
@@ -53,9 +54,11 @@
<tr
v-for=
"forecast in wwResult.forecastsByDates"
:key=
"forecast.date"
>
<th
scope=
"row"
>
{{
forecast
.
date
|
formatDateHeure
}}
</th>
<td
class=
"p-0"
>
<div
class=
"d-flex justify-content-between p-3"
v-for=
"member in forecast.forecasts"
:key=
"member.member.uid"
>
<div>
{{
member
.
member
.
uid
}}
</div>
<div>
{{
member
.
proba
*
100
}}
%
</div>
<div
class=
"list-group rounded-0"
>
<nuxt-link
class=
"list-group-item list-group-item-action border-0 d-flex justify-content-between"
:to=
"'/membres/' + member.member.hash"
v-for=
"member in forecast.forecasts"
:key=
"member.member.uid"
>
<div>
{{
member
.
member
.
uid
}}
<BadgeStatus
:membre=
"member.member"
/></div>
<div>
{{
member
.
proba
*
100
}}
%
</div>
</nuxt-link>
</div>
</td>
</tr>
...
...
@@ -92,7 +95,9 @@ export default {
},
// Fonctions locales
methods
:
{
save
()
{
localStorage
.
setItem
(
'
previsions
'
,
this
.
display
)
}
},
apollo
:
{
wwResult
:
{
...
...
@@ -178,6 +183,19 @@ export default {
mounted
()
{
// Mise à jour du fil d'ariane au chargement
$nuxt
.
$emit
(
'
changeRoute
'
,
this
.
breadcrumb
)
if
(
localStorage
.
previsions
)
{
this
.
display
=
localStorage
.
getItem
(
'
previsions
'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.list-group-item
{
background
:
transparent
;
&
:hover
{
background
:
rgba
(
0
,
0
,
255
,
0
.075
);
color
:
var
(
--
text-primary-color
);
}
}
</
script
>
\ No newline at end of file
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment