on deplace le prise en compte du tri des colonnes, comme cela c'est ok avec les crayons

This commit is contained in:
Christophe 2022-04-26 16:41:34 +02:00
parent 833a8a7a3f
commit 2b56efdfbd
2 changed files with 19 additions and 23 deletions

View file

@ -259,13 +259,6 @@ let monTableau = {
this.vuebloc = data; this.vuebloc = data;
}); });
} }
setTimeout(() => {
if (this.ordreCol) {
Object.entries(this.ordreCol).forEach(([col, sens]) => {
this.tri(col, sens);
});
}
}, 500);
}, },
computed: { computed: {
filtreColVal_visible: function () { filtreColVal_visible: function () {
@ -600,6 +593,11 @@ let monTableau = {
if (this.nomblocajaxreload) { if (this.nomblocajaxreload) {
ajaxReload(this.nomblocajaxreload); ajaxReload(this.nomblocajaxreload);
} }
if (this.ordreCol) {
Object.entries(this.ordreCol).forEach(([col, sens]) => {
this.tri(col, sens);
});
}
console.timeEnd('Chargement de VueJs APRES Ajax'); console.timeEnd('Chargement de VueJs APRES Ajax');
}); });
}) })

View file

@ -314,18 +314,6 @@ var monTableau = {
_this.vuebloc = data; _this.vuebloc = data;
}); });
} }
setTimeout(function () {
if (_this.ordreCol) {
Object.entries(_this.ordreCol).forEach(function (_ref3) {
var _ref4 = _slicedToArray(_ref3, 2),
col = _ref4[0],
sens = _ref4[1];
_this.tri(col, sens);
});
}
}, 500);
}, },
computed: { computed: {
filtreColVal_visible: function filtreColVal_visible() { filtreColVal_visible: function filtreColVal_visible() {
@ -455,10 +443,10 @@ var monTableau = {
var ObfiltreSelect = []; var ObfiltreSelect = [];
if (this.filtreColSelected) { if (this.filtreColSelected) {
Object.entries(this.filtreColSelected).forEach(function (_ref5) { Object.entries(this.filtreColSelected).forEach(function (_ref3) {
var _ref6 = _slicedToArray(_ref5, 2), var _ref4 = _slicedToArray(_ref3, 2),
champ = _ref6[0], champ = _ref4[0],
valeurs = _ref6[1]; valeurs = _ref4[1];
if (!Array.isArray(valeurs)) { if (!Array.isArray(valeurs)) {
valeurs = [valeurs]; valeurs = [valeurs];
@ -698,6 +686,16 @@ var monTableau = {
ajaxReload(_this4.nomblocajaxreload); ajaxReload(_this4.nomblocajaxreload);
} }
if (_this4.ordreCol) {
Object.entries(_this4.ordreCol).forEach(function (_ref5) {
var _ref6 = _slicedToArray(_ref5, 2),
col = _ref6[0],
sens = _ref6[1];
_this4.tri(col, sens);
});
}
console.timeEnd('Chargement de VueJs APRES Ajax'); console.timeEnd('Chargement de VueJs APRES Ajax');
}); });
}).catch(function (error) { }).catch(function (error) {