feat: ajout un deuxieme de rechargememnt => simple maj de la bdd
This commit is contained in:
parent
d22f7dc9fd
commit
21408995c9
1 changed files with 25 additions and 3 deletions
|
@ -21,12 +21,23 @@
|
|||
<i class="fa fa-filter fas"></i>
|
||||
</button>
|
||||
<button
|
||||
class="btn var_gamutable"
|
||||
class="btn var_gamutable rouge"
|
||||
type="button"
|
||||
@click.stop="chargerJson()"
|
||||
title="Forcer le rechargement"
|
||||
title="Rechargement complet du tableau"
|
||||
>
|
||||
<i class="fa fa-refresh fas fa-sync"></i>
|
||||
<i class="fa fa-refresh fas fa-sync-alt"></i>
|
||||
</button>
|
||||
<button
|
||||
class="btn var_gamutable"
|
||||
type="button"
|
||||
@click.stop="chargerJson('maj')"
|
||||
:title="
|
||||
'Mise à jour du tableau - dernière version de la base de donnée le : ' +
|
||||
dateMaj
|
||||
"
|
||||
>
|
||||
<i class="fa fa-refresh fas fa-redo-alt"></i>
|
||||
</button>
|
||||
|
||||
<button
|
||||
|
@ -482,6 +493,17 @@ onMounted(() => {
|
|||
//~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Computed
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
const dateMaj = computed(() => {
|
||||
if (maj.value) {
|
||||
const [laDate, lHeure] = maj.value.split(" ");
|
||||
const [annee, mois, jour] = laDate.split("-");
|
||||
const [heure, min, sec] = lHeure.split(":");
|
||||
return `${jour}/${mois}/${annee} à ${heure}h${min}min${sec}sec`;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
});
|
||||
|
||||
const tableau = computed(() => {
|
||||
setPages();
|
||||
if (!search.value && !filtreColModif.value) {
|
||||
|
|
Loading…
Add table
Reference in a new issue