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
|
||||
searchable
|
||||
@selected="selectValCol"
|
||||
@search:focus="endLoadingVueSelect"
|
||||
@removed="endLoadingVueSelect"
|
||||
@search:focus=""
|
||||
@removed=""
|
||||
>
|
||||
<template #tag="{ option, remove }">
|
||||
<div class="tag--un">
|
||||
|
@ -229,7 +229,7 @@
|
|||
v-model="filtreColSelected[head]"
|
||||
type="text"
|
||||
placeholder="Rechercher"
|
||||
@keydown="endLoadingVueSelect"
|
||||
@keydown=""
|
||||
/>
|
||||
<button
|
||||
v-if="
|
||||
|
@ -459,7 +459,7 @@ let champ_search = ref("html");
|
|||
let chargement = ref(true);
|
||||
let quelleVue = ref(props.vueblocdefaut);
|
||||
let vuebloc = ref(false);
|
||||
let loadingVueSelect = ref(true);
|
||||
// let loadingVueSelect = ref(true);
|
||||
let ajaxCrayons = ref(false);
|
||||
let maj = ref("");
|
||||
let afficherVal = props.afficher;
|
||||
|
@ -610,25 +610,23 @@ watch(tableau, () => {
|
|||
});
|
||||
|
||||
watch(filtreColSelected, () => {
|
||||
if (!loadingVueSelect.value) {
|
||||
let ObfiltreSelect = [];
|
||||
if (filtreColSelected.value) {
|
||||
Object.entries(filtreColSelected.value).forEach(
|
||||
([champ, valeurs]) => {
|
||||
if (!Array.isArray(valeurs)) {
|
||||
valeurs = [valeurs];
|
||||
}
|
||||
ObfiltreSelect.push({ champ, valeurs });
|
||||
}
|
||||
);
|
||||
}
|
||||
if (!ajaxCrayons) {
|
||||
localStorage.setItem(
|
||||
"filtreselect_" + nameLocalStorage,
|
||||
JSON.stringify(ObfiltreSelect)
|
||||
);
|
||||
}
|
||||
// if (!loadingVueSelect.value) {
|
||||
let ObfiltreSelect = [];
|
||||
if (filtreColSelected.value) {
|
||||
Object.entries(filtreColSelected.value).forEach(([champ, valeurs]) => {
|
||||
if (!Array.isArray(valeurs)) {
|
||||
valeurs = [valeurs];
|
||||
}
|
||||
ObfiltreSelect.push({ champ, valeurs });
|
||||
});
|
||||
}
|
||||
if (!ajaxCrayons) {
|
||||
localStorage.setItem(
|
||||
"filtreselect_" + nameLocalStorage,
|
||||
JSON.stringify(ObfiltreSelect)
|
||||
);
|
||||
}
|
||||
//}
|
||||
});
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
@ -881,16 +879,16 @@ function saveHeader() {
|
|||
localStorage.setItem("header_" + nameLocalStorage, JSON.stringify($header));
|
||||
}
|
||||
function deleteInputSearch(head) {
|
||||
loadingVueSelect.value = false;
|
||||
// loadingVueSelect.value = false;
|
||||
filtreColSelected.value[head] = [];
|
||||
saveHeader();
|
||||
}
|
||||
function selectValCol() {
|
||||
filtreColModif.value++;
|
||||
}
|
||||
function endLoadingVueSelect() {
|
||||
loadingVueSelect.value = false;
|
||||
}
|
||||
// function endLoadingVueSelect() {
|
||||
// loadingVueSelect.value = false;
|
||||
// }
|
||||
function calculer_nameLocalStorage() {
|
||||
if (props.apiuri) {
|
||||
return props.apiuri.match(/.*page=(.*)/)[1];
|
||||
|
@ -941,7 +939,7 @@ function ordreActif(col, sens) {
|
|||
}
|
||||
}
|
||||
function resetTri() {
|
||||
loadingVueSelect.value = false;
|
||||
// loadingVueSelect.value = false;
|
||||
table.value = orderBy(table.value, ["id"], "", champ_search.value);
|
||||
triOrders.value = [];
|
||||
triProps.value = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue