diff --git a/inclure/gamutable.html b/inclure/gamutable.html
index 9e8bb89..0e0e413 100644
--- a/inclure/gamutable.html
+++ b/inclure/gamutable.html
@@ -30,6 +30,7 @@
apiuri="[(#ENV{apiuri})]"
pdfuri="#GET{pdfuri}"
:tparpage="#ENV{tparpage, [10, 20, 50, 'Tous']}"
+ :afficher="#ENV{afficher}"
champcsv="#ENV{champcsv,html}"
delimitercsv="#ENV{delimitercsv,','}"
namecsv="#ENV{namecsv}"
@@ -61,6 +62,7 @@
apiuri="[(#ENV{apiuri_deux})]"
pdfuri="#GET{pdfuri}"
:tparpage="#ENV{tparpage_deux, #ENV{tparpage, [10, 20, 50, 'Tous']}}"
+ :afficher="#ENV{afficher_deux}"
champcsv="[(#ENV{champcsv_deux, #ENV{champcsv,html}})]"
delimitercsv="[(#ENV{delimitercsv_deux, #ENV{delimitercsv,','}})]"
namecsv="[(#ENV{namecsv_deux, #ENV{namecsv}})]"
diff --git a/src/components/gamuTable.vue b/src/components/gamuTable.vue
index 9ed2610..a1c85a3 100644
--- a/src/components/gamuTable.vue
+++ b/src/components/gamuTable.vue
@@ -359,6 +359,9 @@ const props = defineProps({
return [10, 20, 50, "Tous"];
},
},
+ afficher: {
+ type: Number,
+ },
apiuri: {
type: String,
required: true,
@@ -792,6 +795,10 @@ function chargerJson(id) {
filtreColModif.value++;
ajaxCrayons = false;
+ if (props.afficher && props.tparpage.includes(props.afficher)) {
+ parPageSelect.value = props.afficher;
+ }
+
if (parseInt(props._id) > 0) {
let _id = parseInt(props._id);
let parPageL = parseInt(parPage.value);