From de9c4783600859d57b56a3913bf44d1efb8522da Mon Sep 17 00:00:00 2001 From: tofulm Date: Mon, 16 Jan 2023 12:10:19 +0100 Subject: [PATCH] =?UTF-8?q?Feat=20=3D=20ajout=20de=20la=20selection=20du?= =?UTF-8?q?=20nombre=20de=20ligne=20=C3=A0=20afficher=20dans=20l'url=20via?= =?UTF-8?q?=20afficher=3D50=20ref=20#10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inclure/gamutable.html | 2 ++ src/components/gamuTable.vue | 7 +++++++ 2 files changed, 9 insertions(+) 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);