Skip to content

Commit

Permalink
Merge pull request #158 from abes-esr/ITEM-320-Les-filtres-sur-les-da…
Browse files Browse the repository at this point in the history
…tes-dans-les-tableaux-de-bord-des-demandes,-spécifiquement-en-dates-de-dernière-modification-descendante,-pas-valide,-retravailler-le-tri

ITEM-320 FIX: Inverser le tri des dates dans les tableaux de bord
  • Loading branch information
EryneKL authored Oct 25, 2024
2 parents 7ac3554 + 3c67eea commit d99b734
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/views/Exemplarisation/ExempTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
Expand All @@ -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;
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/views/Modification/ModifTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
Expand All @@ -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;
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/views/Recouvrement/RecouvTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
Expand All @@ -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;
}
},
Expand Down
8 changes: 4 additions & 4 deletions src/views/Suppression/SuppTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
Expand All @@ -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;
}
},
Expand Down

0 comments on commit d99b734

Please sign in to comment.