fixes: loads search & locations load

This commit is contained in:
Alexandro Uc Santos
2024-11-09 16:34:47 -06:00
parent 23e691c2e3
commit d56230a9a9
4 changed files with 12 additions and 11 deletions

View File

@@ -302,11 +302,11 @@ export const useCompanyStore = defineStore('company', () => {
}
const getLocationsLoads = async(type) => {
console.log(type);
// console.log(type);
let locationsType = (type === 'loading') ? locationsLoad.value : locationsDowload.value;
console.log(locationsType);
// console.log(locationsType);
if(locationsType.length <= 0) {
const filterStr = "?company="+ localStorage.getItem('id') + '&$limit=100';
const filterStr = "?company="+ localStorage.getItem('id') + '&elements=100';
const respBoth = await getLocations(filterStr + '&type=' + 'both');
const resp = await getLocations(filterStr + '&type=' + type);
if(resp !== null && resp.total > 0) {