From 3c67eeae255cc6ac2e6f0f373f576a546aa0aa7e Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Fri, 25 Oct 2024 10:10:56 +0200 Subject: [PATCH] ITEM-320 FIX: Inverser le tri des dates dans les tableaux de bord --- src/views/Exemplarisation/ExempTable.vue | 8 ++++---- src/views/Modification/ModifTable.vue | 8 ++++---- src/views/Recouvrement/RecouvTable.vue | 8 ++++---- src/views/Suppression/SuppTable.vue | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/Exemplarisation/ExempTable.vue b/src/views/Exemplarisation/ExempTable.vue index 85ccb04..97f539e 100644 --- a/src/views/Exemplarisation/ExempTable.vue +++ b/src/views/Exemplarisation/ExempTable.vue @@ -155,8 +155,8 @@ const headingsDemandes = [ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -167,8 +167,8 @@ const headingsDemandes = [ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, diff --git a/src/views/Modification/ModifTable.vue b/src/views/Modification/ModifTable.vue index 9dbe8d7..e0bc376 100644 --- a/src/views/Modification/ModifTable.vue +++ b/src/views/Modification/ModifTable.vue @@ -156,8 +156,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -170,8 +170,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, diff --git a/src/views/Recouvrement/RecouvTable.vue b/src/views/Recouvrement/RecouvTable.vue index 4831ddb..b25e97c 100644 --- a/src/views/Recouvrement/RecouvTable.vue +++ b/src/views/Recouvrement/RecouvTable.vue @@ -148,8 +148,8 @@ const headingsDemandes = ref([ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -160,8 +160,8 @@ const headingsDemandes = ref([ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, diff --git a/src/views/Suppression/SuppTable.vue b/src/views/Suppression/SuppTable.vue index e6440ab..bf08fa6 100644 --- a/src/views/Suppression/SuppTable.vue +++ b/src/views/Suppression/SuppTable.vue @@ -141,8 +141,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -155,8 +155,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } },