Feat = ajout de la selection du nombre de ligne à afficher dans l'url
via afficher=50 ref #10
This commit is contained in:
parent
e34f8b58b1
commit
de9c478360
2 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
||||||
apiuri="[(#ENV{apiuri})]"
|
apiuri="[(#ENV{apiuri})]"
|
||||||
pdfuri="#GET{pdfuri}"
|
pdfuri="#GET{pdfuri}"
|
||||||
:tparpage="#ENV{tparpage, [10, 20, 50, 'Tous']}"
|
:tparpage="#ENV{tparpage, [10, 20, 50, 'Tous']}"
|
||||||
|
:afficher="#ENV{afficher}"
|
||||||
champcsv="#ENV{champcsv,html}"
|
champcsv="#ENV{champcsv,html}"
|
||||||
delimitercsv="#ENV{delimitercsv,','}"
|
delimitercsv="#ENV{delimitercsv,','}"
|
||||||
namecsv="#ENV{namecsv}"
|
namecsv="#ENV{namecsv}"
|
||||||
|
@ -61,6 +62,7 @@
|
||||||
apiuri="[(#ENV{apiuri_deux})]"
|
apiuri="[(#ENV{apiuri_deux})]"
|
||||||
pdfuri="#GET{pdfuri}"
|
pdfuri="#GET{pdfuri}"
|
||||||
:tparpage="#ENV{tparpage_deux, #ENV{tparpage, [10, 20, 50, 'Tous']}}"
|
:tparpage="#ENV{tparpage_deux, #ENV{tparpage, [10, 20, 50, 'Tous']}}"
|
||||||
|
:afficher="#ENV{afficher_deux}"
|
||||||
champcsv="[(#ENV{champcsv_deux, #ENV{champcsv,html}})]"
|
champcsv="[(#ENV{champcsv_deux, #ENV{champcsv,html}})]"
|
||||||
delimitercsv="[(#ENV{delimitercsv_deux, #ENV{delimitercsv,','}})]"
|
delimitercsv="[(#ENV{delimitercsv_deux, #ENV{delimitercsv,','}})]"
|
||||||
namecsv="[(#ENV{namecsv_deux, #ENV{namecsv}})]"
|
namecsv="[(#ENV{namecsv_deux, #ENV{namecsv}})]"
|
||||||
|
|
|
@ -359,6 +359,9 @@ const props = defineProps({
|
||||||
return [10, 20, 50, "Tous"];
|
return [10, 20, 50, "Tous"];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
afficher: {
|
||||||
|
type: Number,
|
||||||
|
},
|
||||||
apiuri: {
|
apiuri: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -792,6 +795,10 @@ function chargerJson(id) {
|
||||||
filtreColModif.value++;
|
filtreColModif.value++;
|
||||||
ajaxCrayons = false;
|
ajaxCrayons = false;
|
||||||
|
|
||||||
|
if (props.afficher && props.tparpage.includes(props.afficher)) {
|
||||||
|
parPageSelect.value = props.afficher;
|
||||||
|
}
|
||||||
|
|
||||||
if (parseInt(props._id) > 0) {
|
if (parseInt(props._id) > 0) {
|
||||||
let _id = parseInt(props._id);
|
let _id = parseInt(props._id);
|
||||||
let parPageL = parseInt(parPage.value);
|
let parPageL = parseInt(parPage.value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue