Skip to content

Commit

Permalink
ITEM-320 FIX: Inverser le tri des dates dans les tableaux de bord
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Oct 25, 2024
1 parent 7ac3554 commit 3c67eea
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 3c67eea

Please sign in to comment.