enLoadingVueSelect semble ne plus etre utile
This commit is contained in:
parent
d22f7dc9fd
commit
fa437e4869
1 changed files with 25 additions and 27 deletions
|
@ -208,8 +208,8 @@
|
||||||
clear-on-close
|
clear-on-close
|
||||||
searchable
|
searchable
|
||||||
@selected="selectValCol"
|
@selected="selectValCol"
|
||||||
@search:focus="endLoadingVueSelect"
|
@search:focus=""
|
||||||
@removed="endLoadingVueSelect"
|
@removed=""
|
||||||
>
|
>
|
||||||
<template #tag="{ option, remove }">
|
<template #tag="{ option, remove }">
|
||||||
<div class="tag--un">
|
<div class="tag--un">
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
v-model="filtreColSelected[head]"
|
v-model="filtreColSelected[head]"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Rechercher"
|
placeholder="Rechercher"
|
||||||
@keydown="endLoadingVueSelect"
|
@keydown=""
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
v-if="
|
v-if="
|
||||||
|
@ -459,7 +459,7 @@ let champ_search = ref("html");
|
||||||
let chargement = ref(true);
|
let chargement = ref(true);
|
||||||
let quelleVue = ref(props.vueblocdefaut);
|
let quelleVue = ref(props.vueblocdefaut);
|
||||||
let vuebloc = ref(false);
|
let vuebloc = ref(false);
|
||||||
let loadingVueSelect = ref(true);
|
// let loadingVueSelect = ref(true);
|
||||||
let ajaxCrayons = ref(false);
|
let ajaxCrayons = ref(false);
|
||||||
let maj = ref("");
|
let maj = ref("");
|
||||||
let afficherVal = props.afficher;
|
let afficherVal = props.afficher;
|
||||||
|
@ -610,17 +610,15 @@ watch(tableau, () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(filtreColSelected, () => {
|
watch(filtreColSelected, () => {
|
||||||
if (!loadingVueSelect.value) {
|
// if (!loadingVueSelect.value) {
|
||||||
let ObfiltreSelect = [];
|
let ObfiltreSelect = [];
|
||||||
if (filtreColSelected.value) {
|
if (filtreColSelected.value) {
|
||||||
Object.entries(filtreColSelected.value).forEach(
|
Object.entries(filtreColSelected.value).forEach(([champ, valeurs]) => {
|
||||||
([champ, valeurs]) => {
|
|
||||||
if (!Array.isArray(valeurs)) {
|
if (!Array.isArray(valeurs)) {
|
||||||
valeurs = [valeurs];
|
valeurs = [valeurs];
|
||||||
}
|
}
|
||||||
ObfiltreSelect.push({ champ, valeurs });
|
ObfiltreSelect.push({ champ, valeurs });
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (!ajaxCrayons) {
|
if (!ajaxCrayons) {
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
|
@ -628,7 +626,7 @@ watch(filtreColSelected, () => {
|
||||||
JSON.stringify(ObfiltreSelect)
|
JSON.stringify(ObfiltreSelect)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
});
|
});
|
||||||
|
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -881,16 +879,16 @@ function saveHeader() {
|
||||||
localStorage.setItem("header_" + nameLocalStorage, JSON.stringify($header));
|
localStorage.setItem("header_" + nameLocalStorage, JSON.stringify($header));
|
||||||
}
|
}
|
||||||
function deleteInputSearch(head) {
|
function deleteInputSearch(head) {
|
||||||
loadingVueSelect.value = false;
|
// loadingVueSelect.value = false;
|
||||||
filtreColSelected.value[head] = [];
|
filtreColSelected.value[head] = [];
|
||||||
saveHeader();
|
saveHeader();
|
||||||
}
|
}
|
||||||
function selectValCol() {
|
function selectValCol() {
|
||||||
filtreColModif.value++;
|
filtreColModif.value++;
|
||||||
}
|
}
|
||||||
function endLoadingVueSelect() {
|
// function endLoadingVueSelect() {
|
||||||
loadingVueSelect.value = false;
|
// loadingVueSelect.value = false;
|
||||||
}
|
// }
|
||||||
function calculer_nameLocalStorage() {
|
function calculer_nameLocalStorage() {
|
||||||
if (props.apiuri) {
|
if (props.apiuri) {
|
||||||
return props.apiuri.match(/.*page=(.*)/)[1];
|
return props.apiuri.match(/.*page=(.*)/)[1];
|
||||||
|
@ -941,7 +939,7 @@ function ordreActif(col, sens) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function resetTri() {
|
function resetTri() {
|
||||||
loadingVueSelect.value = false;
|
// loadingVueSelect.value = false;
|
||||||
table.value = orderBy(table.value, ["id"], "", champ_search.value);
|
table.value = orderBy(table.value, ["id"], "", champ_search.value);
|
||||||
triOrders.value = [];
|
triOrders.value = [];
|
||||||
triProps.value = [];
|
triProps.value = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue